From 4abdfe19d1c4a675f696cf53723905a9ef83c73f Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 24 Oct 2019 17:11:16 -0600 Subject: [PATCH] don't inadvertently create a Splash when a dialog is shown --- gtk2_ardour/ardour_dialog.cc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/ardour_dialog.cc b/gtk2_ardour/ardour_dialog.cc index ba3a3f73b4..fe3a1cc80f 100644 --- a/gtk2_ardour/ardour_dialog.cc +++ b/gtk2_ardour/ardour_dialog.cc @@ -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; + } } }