diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2012-03-16 15:51:33 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2012-03-16 15:51:33 +0000 |
commit | d86a0784833b7b7bce38678b4b9c8733a9233727 (patch) | |
tree | 7ec90e7f058234b1af20236dfc17c4cbabb425a4 /gtk2_ardour/ardour_ui.cc | |
parent | 8e1488c76ef03d86618e979485bb5ee1cd495533 (diff) |
hide splash window under certain error conditions
git-svn-id: svn://localhost/ardour2/branches/3.0@11705 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 9b58397877..d9142b8b1a 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -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 (); |