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:
parent
d3d8c36c54
commit
c2a93a9b38
@ -2565,8 +2565,10 @@ 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 */
|
||||||
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user