diff options
author | Robin Gareus <robin@gareus.org> | 2020-01-17 18:52:33 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2020-01-17 18:52:33 +0100 |
commit | 0ad9c3de1a2a7870e3ce95fa96d0ff96253c52d0 (patch) | |
tree | ea62df61883a1fd398d62d6a8c271c0d92a8dc54 /gtk2_ardour | |
parent | 4b355868ccef5cb7d48a1e6618d54890e978a42b (diff) |
Fix another stuck splash screen
Don't allow dialogs to re-create the splash only to hide it.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r-- | gtk2_ardour/ardour_dialog.cc | 2 | ||||
-rw-r--r-- | gtk2_ardour/ardour_message.cc | 2 | ||||
-rw-r--r-- | gtk2_ardour/ardour_ui_startup.cc | 8 |
3 files changed, 3 insertions, 9 deletions
diff --git a/gtk2_ardour/ardour_dialog.cc b/gtk2_ardour/ardour_dialog.cc index fe3a1cc80f..1cf588fbf6 100644 --- a/gtk2_ardour/ardour_dialog.cc +++ b/gtk2_ardour/ardour_dialog.cc @@ -87,7 +87,7 @@ void ArdourDialog::pop_splash () { if (_splash_pushed) { - Splash* spl = Splash::instance(); + Splash* spl = Splash::exists () ? Splash::instance() : NULL; if (spl) { spl->pop_front(); diff --git a/gtk2_ardour/ardour_message.cc b/gtk2_ardour/ardour_message.cc index d6302fb2c6..14039d7fe6 100644 --- a/gtk2_ardour/ardour_message.cc +++ b/gtk2_ardour/ardour_message.cc @@ -77,7 +77,7 @@ void ArdourMessageDialog::pop_splash () { if (_splash_pushed) { - Splash* spl = Splash::instance(); + Splash* spl = Splash::exists () ? Splash::instance() : NULL; if (spl) { spl->pop_front(); } diff --git a/gtk2_ardour/ardour_ui_startup.cc b/gtk2_ardour/ardour_ui_startup.cc index 3eac97ff9e..f52bbfb9f5 100644 --- a/gtk2_ardour/ardour_ui_startup.cc +++ b/gtk2_ardour/ardour_ui_startup.cc @@ -100,13 +100,7 @@ ARDOUR_UI::first_idle () editor->first_idle(); } - /* in 1 second, hide the splash screen - * - * Consider hiding it *now*. If a user opens opens a dialog - * during that one second while the splash is still visible, - * the dialog will push-back the splash. - * Closing the dialog later will pop it back. - */ + /* in 1 second, hide the splash screen */ Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000); Keyboard::set_can_save_keybindings (true); |