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:
parent
fd4c35d46a
commit
fa2c935581
@ -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() &&
|
||||
|
Loading…
Reference in New Issue
Block a user