diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-11-10 00:01:13 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-11-10 00:01:13 +0000 |
commit | 4499c64d354c556eecb22a890a0d25186efe8694 (patch) | |
tree | 2da07bf59b919c837f68ccb6e7a76b1ee2072c3a | |
parent | 429ff2547b2652a86d32799fbab9b83ceaeb5cdd (diff) |
allow a way to exit when session loading fails, rather than being stuck in an endless loop of 2 alternating dialogs
git-svn-id: svn://localhost/ardour2/branches/3.0@7991 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index a14018e014..ef727c1e5e 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -2709,24 +2709,26 @@ ARDOUR_UI::load_session (const std::string& path, const std::string& snap_name, MessageDialog msg (string_compose(_("Session \"%1 (snapshot %2)\" did not load successfully"), path, snap_name), true, Gtk::MESSAGE_INFO, - Gtk::BUTTONS_CLOSE); + BUTTONS_OK); msg.set_title (_("Loading Error")); - msg.set_secondary_text (_("Click the Close button to try again.")); + msg.set_secondary_text (_("Click the Refresh button to try again.")); + msg.add_button (Stock::REFRESH, 1); msg.set_position (Gtk::WIN_POS_CENTER); pop_back_splash (); msg.present (); int response = msg.run (); + switch (response) { + case 1: + break; + default: + exit (1); + } + msg.hide (); - switch (response) { - case RESPONSE_CANCEL: - exit (1); - default: - break; - } goto out; } |