13
0

Show the splash-screen if the engine dialog's run() hid it.

This commit is contained in:
Robin Gareus 2017-04-20 23:16:09 +02:00
parent 057bb167ca
commit e1c4fe8edc
2 changed files with 5 additions and 1 deletions

View File

@ -49,11 +49,13 @@ public:
void on_show ();
virtual void on_response (int);
protected:
void pop_splash ();
private:
WM::ProxyTemporary* proxy;
bool _splash_pushed;
void init ();
void pop_splash ();
static sigc::signal<void> CloseAllDialogs;
};

View File

@ -2670,6 +2670,7 @@ EngineControl::start_stop_button_clicked ()
ARDOUR::AudioEngine::instance()->stop ();
} else {
if (!ARDOUR_UI::instance()->session_loaded) {
pop_splash ();
hide ();
ARDOUR::GUIIdle ();
}
@ -3084,6 +3085,7 @@ EngineControl::connect_disconnect_click()
stop_engine ();
} else {
if (!ARDOUR_UI::instance()->session_loaded) {
pop_splash ();
hide ();
ARDOUR::GUIIdle ();
}