13
0

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"
This commit is contained in:
Robin Gareus 2020-01-13 20:17:58 +01:00
parent fd4c35d46a
commit fa2c935581
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -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() &&