summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-08-03 18:43:41 +0200
committerRobin Gareus <robin@gareus.org>2017-08-03 19:25:14 +0200
commit1b5354632fc1f0f2b5f96a07b20d35ac5c64628b (patch)
treeff04e8a1fbb37dbb7905666f5a3b8a017c6dcf7e /gtk2_ardour/ardour_ui.cc
parentd0c934a9de31df9ea0f6046fa074ea9fe17e8b07 (diff)
Fix Session > New (cancel retains the current session if any)
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index d6389d68b4..31ddbeca29 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -3483,6 +3483,7 @@ ARDOUR_UI::get_session_parameters (bool quit_on_cancel, bool should_be_new, stri
// user quits from the main 'Session Setup' dialog (i.e. reaching this
// point does NOT indicate an abnormal termination). Therefore, let's
// behave gracefully (i.e. let's do some cleanup) before we call exit()
+ assert (!_session);
ARDOUR::cleanup ();
pthread_cancel_all ();