summaryrefslogtreecommitdiff
path: root/gtk2_ardour/ardour_ui.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-09-18 10:03:37 +0200
committerRobin Gareus <robin@gareus.org>2016-09-18 10:03:37 +0200
commit7fe91a7d1cc6d8914d2010d2a393450a78671ae4 (patch)
treecdd7afc84ac72388dc2fbcaf7fd80e071de8fb0d /gtk2_ardour/ardour_ui.cc
parent2e8621fdbfd65d2837674d5c90aee17068717959 (diff)
fix another crash at exit #7033
Don't construct the bindings editor only to disconnect its signals
Diffstat (limited to 'gtk2_ardour/ardour_ui.cc')
-rw-r--r--gtk2_ardour/ardour_ui.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 6c349260f7..7a59569254 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -1324,7 +1324,9 @@ If you still wish to quit, please use the\n\n\
*/
save_ardour_state ();
- key_editor->disconnect ();
+ if (key_editor.get (false)) {
+ key_editor->disconnect ();
+ }
close_all_dialogs ();