diff options
author | Robin Gareus <robin@gareus.org> | 2020-01-13 20:17:58 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-01-13 20:17:58 +0100 |
commit | fa2c935581d013116358ed229a5df30453dd35d8 (patch) | |
tree | b6024ea9c222be40e82b9d1bb4195c0e07936b0a /gtk2_ardour/ardour_ui_dialogs.cc | |
parent | fd4c35d46a63b22795e526d1e0375a9b2d6d441c (diff) |
Fix re-packing of toolbar meter
This fixes a gtk-warning when loading a session from a
running instance:
IA__gtk_table_attach: assertion 'child->parent == NULL' failed"
Diffstat (limited to 'gtk2_ardour/ardour_ui_dialogs.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui_dialogs.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui_dialogs.cc b/gtk2_ardour/ardour_ui_dialogs.cc index 106c064ed2..5fe1a261c8 100644 --- a/gtk2_ardour/ardour_ui_dialogs.cc +++ b/gtk2_ardour/ardour_ui_dialogs.cc @@ -233,12 +233,14 @@ ARDOUR_UI::set_session (Session *s) editor_meter_table.remove(*editor_meter); delete editor_meter; editor_meter = 0; - editor_meter_peak_display.hide(); } if (editor_meter_table.get_parent()) { transport_hbox.remove (editor_meter_table); } + if (editor_meter_peak_display.get_parent ()) { + editor_meter_table.remove (editor_meter_peak_display); + } if (_session && _session->master_out() && |