summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-05-11 14:20:33 +0200
committerRobin Gareus <robin@gareus.org>2017-05-11 14:20:56 +0200
commit24d5f1a6249b08a8b21854ecf001be7e07e5bf23 (patch)
tree0ea92155b52b4a2f93786e5b2064d11f63dab335 /gtk2_ardour/ardour_ui.cc
parent26593d08ed34402c05b712f43ca3918d061a8ccd (diff)
Tweak/fix splash screen event-loop
Prevent possible endless loop in Splash::display() and handle some related edge-cases and race conditions WRT expose_done and is_visible().
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index d01a92ebf6..f48d4f527d 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -1282,7 +1282,7 @@ ARDOUR_UI::starting ()
BootMessage (string_compose (_("%1 is ready for use"), PROGRAM_NAME));
- if (splash && splash->is_visible()) {
+ if (splash) {
// in 1 second, hide the splash screen
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000);
}
@@ -1927,7 +1927,7 @@ ARDOUR_UI::open_recent_session ()
can_return = false;
}
- if (splash && splash->is_visible()) {
+ if (splash) {
// in 1 second, hide the splash screen
Glib::signal_timeout().connect (sigc::bind (sigc::ptr_fun (_hide_splash), this), 1000);
}