hide splash window under certain error conditions
git-svn-id: svn://localhost/ardour2/branches/3.0@11705 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
@@ -2582,6 +2582,12 @@ ARDOUR_UI::get_session_parameters (bool quit_on_cancel, bool should_be_new, stri
|
||||
} else {
|
||||
|
||||
if (!likely_new) {
|
||||
if (_startup) {
|
||||
pop_back_splash (*_startup);
|
||||
} else {
|
||||
hide_splash ();
|
||||
}
|
||||
|
||||
MessageDialog msg (string_compose (_("There is no existing session at \"%1\""), session_path));
|
||||
msg.run ();
|
||||
ARDOUR_COMMAND_LINE::session_name = ""; // cancel that
|
||||
@@ -2590,6 +2596,7 @@ ARDOUR_UI::get_session_parameters (bool quit_on_cancel, bool should_be_new, stri
|
||||
|
||||
char illegal = Session::session_name_is_legal(session_name);
|
||||
if (illegal) {
|
||||
pop_back_splash (*_startup);
|
||||
MessageDialog msg (*_startup, string_compose(_("To ensure compatibility with various systems\n"
|
||||
"session names may not contain a '%1' character"), illegal));
|
||||
msg.run ();
|
||||
|
||||
Reference in New Issue
Block a user