summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-10-07 12:12:16 +0000
committerCarl Hetherington <carl@carlh.net>2010-10-07 12:12:16 +0000
commit3b0c5e35411fdb1a22eae54c8c574668b62f9c56 (patch)
tree826ddc7b06531eb40bd793ce3fbfae7191d00942 /gtk2_ardour/ardour_ui.cc
parent2d082739873b49f291a288c3217a4f06ef6fde01 (diff)
Respond to JACK session quit request. Fixes #3491.
git-svn-id: svn://localhost/ardour2/branches/3.0@7878 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 85111c2b53..df03e955fa 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -260,6 +260,10 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[])
ARDOUR::Session::AskAboutSampleRateMismatch.connect_same_thread (forever_connections, boost::bind (&ARDOUR_UI::sr_mismatch_dialog, this, _1, _2));
+ /* handle requests to quit (coming from JACK session) */
+
+ ARDOUR::Session::Quit.connect (forever_connections, MISSING_INVALIDATOR, ui_bind (&ARDOUR_UI::finish, this), gui_context ());
+
/* lets get this party started */
try {