Fix crash when closing session, recursive mon-section removal

This commit is contained in:
Robin Gareus 2018-12-08 20:15:53 +01:00
parent d314a510f6
commit 41827a546a
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -821,6 +821,10 @@ ARDOUR_UI::update_title ()
void
ARDOUR_UI::toggle_use_monitor_section ()
{
if (!_session) {
return;
}
RefPtr<Action> act = ActionManager::get_action (X_("Monitor"), "UseMonitorSection");
assert (act); RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
assert (tact);