13
0

fix crash when pressing "s" with kbd focus in editor route list

git-svn-id: svn://localhost/ardour2/branches/3.0@14055 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2013-02-06 14:38:13 +00:00
parent 7dd6b4c915
commit 076d919ac3

View File

@ -1206,10 +1206,12 @@ EditorRoutes::key_press (GdkEventKey* ev)
break; break;
case 's': case 's':
if (Config->get_solo_control_is_listen_control()) { if (get_relevant_routes (rl)) {
_session->set_listen (rl, !rl->front()->listening_via_monitor(), Session::rt_cleanup); if (Config->get_solo_control_is_listen_control()) {
} else { _session->set_listen (rl, !rl->front()->listening_via_monitor(), Session::rt_cleanup);
_session->set_solo (rl, !rl->front()->self_soloed(), Session::rt_cleanup); } else {
_session->set_solo (rl, !rl->front()->self_soloed(), Session::rt_cleanup);
}
} }
return true; return true;
break; break;