mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 20:29:35 +01:00
Handle edge case (optional toolbar meter)
in derivative projects it can happen that the meter is never packaged in the custom toolbar. In Ardour this can happen for sessions without master bus.
This commit is contained in:
parent
72cc6a3e69
commit
4c03ecbd85
1 changed files with 4 additions and 1 deletions
|
|
@ -805,7 +805,10 @@ ApplicationBar::set_session (Session *s)
|
|||
_transport_hbox.remove (_editor_meter_table);
|
||||
}
|
||||
if (_editor_meter) {
|
||||
_editor_meter_table.remove(*_editor_meter);
|
||||
Gtk::Container *parent = _editor_meter->get_parent();
|
||||
if (parent) {
|
||||
parent->remove(*_editor_meter);
|
||||
}
|
||||
delete _editor_meter;
|
||||
_editor_meter = 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue