diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-03 02:25:04 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2006-11-03 02:25:04 +0000 |
commit | c6468d181f28654b90a9e5686a662f6696c130f5 (patch) | |
tree | 3bb90b28274255d34fd49af5566915fee54a06bf /gtk2_ardour/ardour_ui.cc | |
parent | 1b2ecaee84bedd9fc76573ad63a21b845aec8893 (diff) |
do not allow NSD to quit ardour if the user presses "Quit" with a session already loaded
git-svn-id: svn://localhost/ardour2/trunk@1064 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r-- | gtk2_ardour/ardour_ui.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 44cc270c4a..de4eaca43e 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -1619,7 +1619,10 @@ ARDOUR_UI::new_session (bool startup, std::string predetermined_path) if (response == Gtk::RESPONSE_CANCEL || response == Gtk::RESPONSE_DELETE_EVENT) { - quit(); + if (!session) { + quit(); + } + new_session_dialog->hide (); return; } else if (response == Gtk::RESPONSE_NONE) { |