13
0

if creating the splash fails for any reason, don't crash later when trying to use it

git-svn-id: svn://localhost/ardour2/branches/3.0@11272 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-01-19 22:25:03 +00:00
parent d3d8c36c54
commit c2a93a9b38

View File

@ -2565,9 +2565,11 @@ ARDOUR_UI::loading_message (const std::string& msg)
} }
show_splash (); show_splash ();
if (splash) {
splash->message (msg); splash->message (msg);
flush_pending (); flush_pending ();
} }
}
/** @param quit_on_cancel true if exit() should be called if the user clicks `cancel' in the new session dialog */ /** @param quit_on_cancel true if exit() should be called if the user clicks `cancel' in the new session dialog */
int int
@ -3000,6 +3002,7 @@ ARDOUR_UI::show_splash ()
try { try {
splash = new Splash; splash = new Splash;
} catch (...) { } catch (...) {
cerr << "Splash could not be created\n";
return; return;
} }
} }