summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2019-10-24 17:11:16 -0600
committerPaul Davis <paul@linuxaudiosystems.com>2019-10-24 21:32:46 -0600
commit4abdfe19d1c4a675f696cf53723905a9ef83c73f (patch)
tree5a1c5b8ce63790e80d1c5912022a9fff00f6f293 /gtk2_ardour/ardour_dialog.cc
parent84b34f9df1c39b3cc99bdfb1b8dc61db2e71e05a (diff)
don't inadvertently create a Splash when a dialog is shown
Diffstat (limited to 'gtk2_ardour/ardour_dialog.cc')
-rw-r--r--gtk2_ardour/ardour_dialog.cc10
1 files 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;
+ }
}
}