13
0

fix meterbridge window behaviour on session unload/close.

This commit is contained in:
Robin Gareus 2013-07-01 20:42:26 +02:00
parent 30ff4da054
commit 04ad452bca
3 changed files with 4 additions and 1 deletions

View File

@ -214,6 +214,7 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], const char* localedir)
editor = 0;
mixer = 0;
meterbridge = 0;
editor = 0;
engine = 0;
_session_is_new = false;
@ -510,6 +511,7 @@ ARDOUR_UI::~ARDOUR_UI ()
delete keyboard;
delete editor;
delete mixer;
delete meterbridge;
stop_video_server();
}

View File

@ -212,6 +212,7 @@ ARDOUR_UI::unload_session (bool hide_stuff)
if (hide_stuff) {
editor->hide ();
mixer->hide ();
meterbridge->hide ();
theme_manager->hide ();
audio_port_matrix->hide();
midi_port_matrix->hide();

View File

@ -603,7 +603,7 @@ ARDOUR_UI::use_menubar_as_top_menubar ()
void
ARDOUR_UI::save_ardour_state ()
{
if (!keyboard || !mixer || !editor) {
if (!keyboard || !mixer || !editor || !meterbridge) {
return;
}