diff options
author | Robin Gareus <robin@gareus.org> | 2013-11-23 16:48:26 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2013-11-23 16:48:26 +0100 |
commit | af9ac37b6007a72a07a5027a4c98a563f76d3640 (patch) | |
tree | 445c85f58c457cba92d4ba34fabea9ecfc19f3c1 /gtk2_ardour/ardour_ui_options.cc | |
parent | 5cbd4ce759474944ef138a47d3a889ac9902ae03 (diff) |
fix for toolbar master-meter w/o master bus and/or detached toolbar
Diffstat (limited to 'gtk2_ardour/ardour_ui_options.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_options.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/gtk2_ardour/ardour_ui_options.cc b/gtk2_ardour/ardour_ui_options.cc index 0e28900450..c531f006e2 100644 --- a/gtk2_ardour/ardour_ui_options.cc +++ b/gtk2_ardour/ardour_ui_options.cc @@ -402,11 +402,13 @@ ARDOUR_UI::parameter_changed (std::string p) } else if (p == "show-editor-meter") { bool show = Config->get_show_editor_meter(); if (editor_meter && show) { + transport_tearoff_hbox.pack_start (meter_box, false, false); + transport_tearoff_hbox.pack_start (editor_meter_peak_display, false, false); meter_box.show(); editor_meter_peak_display.show(); - } else if (editor_meter && !show) { - meter_box.hide(); - editor_meter_peak_display.hide(); + } else if (editor_meter && !show && meter_box.get_parent()) { + transport_tearoff_hbox.remove (meter_box); + transport_tearoff_hbox.remove (editor_meter_peak_display); } } } |