don't inadvertently create a Splash when a dialog is shown

This commit is contained in:
Paul Davis 2019-10-24 17:11:16 -06:00
parent 84b34f9df1
commit 4abdfe19d1
1 changed files with 6 additions and 4 deletions

View File

@ -126,11 +126,13 @@ ArdourDialog::on_show ()
// never allow the splash screen to obscure any dialog
Splash* spl = Splash::instance();
if (Splash::exists()) {
Splash* spl = Splash::instance();
if (spl && spl->is_visible()) {
spl->pop_back_for (*this);
_splash_pushed = true;
if (spl->is_visible()) {
spl->pop_back_for (*this);
_splash_pushed = true;
}
}
}