diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-01-09 19:41:31 -0600 |
---|---|---|
committer | Ben Loftis <ben@harrisonconsoles.com> | 2017-01-09 19:41:31 -0600 |
commit | 86e46ae41d1e4baac10dc9d08dd4ce2b94d12216 (patch) | |
tree | b6730315673182bda56a6f59cc3dd6399bbb6f66 /gtk2_ardour/mixer_strip.cc | |
parent | 69d043766f3e0f4715f6c9b32afa93069de7df61 (diff) |
Better fix for widgets that do not apply to master bus: leave them in place, but insensitive, to retain layout
Diffstat (limited to 'gtk2_ardour/mixer_strip.cc')
-rw-r--r-- | gtk2_ardour/mixer_strip.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gtk2_ardour/mixer_strip.cc b/gtk2_ardour/mixer_strip.cc index 0a31ac72bb..73a4b20f8d 100644 --- a/gtk2_ardour/mixer_strip.cc +++ b/gtk2_ardour/mixer_strip.cc @@ -549,9 +549,8 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt) solo_button->hide (); mute_button->show (); rec_mon_table.hide (); - if (solo_iso_table.get_parent()) { - solo_iso_table.get_parent()->remove(solo_iso_table); - } + solo_iso_table.set_sensitive(false); + control_slave_ui.set_sensitive(false); if (monitor_section_button == 0) { Glib::RefPtr<Action> act = ActionManager::get_action ("Common", "ToggleMonitorSection"); _session->MonitorChanged.connect (route_connections, invalidator (*this), boost::bind (&MixerStrip::monitor_changed, this), gui_context()); @@ -572,6 +571,8 @@ MixerStrip::set_route (boost::shared_ptr<Route> rt) mute_button->show (); solo_button->show (); rec_mon_table.show (); + solo_iso_table.set_sensitive(true); + control_slave_ui.set_sensitive(true); } if (_mixer_owned && route()->is_master() ) { |