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