diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-12-10 18:41:59 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-12-10 18:41:59 -0500 |
commit | 29eac8ee4e813b8e0d48ea04135e7e6ab45af070 (patch) | |
tree | fd8e331a07fc41b664a0f6351337c86ca3d46c1e /gtk2_ardour/mixer_ui.cc | |
parent | 1de181479fe2d695457d2a0e247fca105cc09209 (diff) |
no longer delete and recreate MonitorSection when it is removed/added to a Session
Diffstat (limited to 'gtk2_ardour/mixer_ui.cc')
-rw-r--r-- | gtk2_ardour/mixer_ui.cc | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gtk2_ardour/mixer_ui.cc b/gtk2_ardour/mixer_ui.cc index a4cfe775f9..37286e8e58 100644 --- a/gtk2_ardour/mixer_ui.cc +++ b/gtk2_ardour/mixer_ui.cc @@ -570,7 +570,7 @@ Mixer_UI::add_stripables (StripableList& slist) if (mnode) { _monitor_section->tearoff().set_state (*mnode); } - + set_monitor_action_sensitivity(true); } @@ -2660,9 +2660,9 @@ void Mixer_UI::monitor_section_going_away () { /* Set sensitivity based on existence of the monitor bus */ - + set_monitor_action_sensitivity(false); - + if (_monitor_section) { XMLNode* ui_node = Config->extra_xml(X_("UI")); @@ -2684,8 +2684,6 @@ Mixer_UI::monitor_section_going_away () monitor_section_detached (); out_packer.remove (_monitor_section->tearoff()); _monitor_section->set_session (0); - delete _monitor_section; - _monitor_section = 0; } } |