From fa2c935581d013116358ed229a5df30453dd35d8 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 13 Jan 2020 20:17:58 +0100 Subject: [PATCH] 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" --- gtk2_ardour/ardour_ui_dialogs.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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() &&