diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2016-02-22 15:22:56 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2016-02-22 15:22:56 +1000 |
commit | 100e156727b3c2e67fdd4c4ff882faf038baa631 (patch) | |
tree | 8eafd44f5444acaa7d2ab5e22219a3b2b824acc1 /gtk2_ardour/route_group_dialog.cc | |
parent | 30497db8236f09b64e231db4c73da98d62148001 (diff) |
Fix 6783, Using "Esc" key doesn't cancel creating new Track/Bus Group
Also fixes it for other sources of delete events like closing the dialog.
Diffstat (limited to 'gtk2_ardour/route_group_dialog.cc')
-rw-r--r-- | gtk2_ardour/route_group_dialog.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/route_group_dialog.cc b/gtk2_ardour/route_group_dialog.cc index f55281f582..9221a67948 100644 --- a/gtk2_ardour/route_group_dialog.cc +++ b/gtk2_ardour/route_group_dialog.cc @@ -184,9 +184,9 @@ RouteGroupDialog::do_run () { while (1) { int const r = run (); - if (r == Gtk::RESPONSE_CANCEL) { - /* cancel, so just bail now */ - return Gtk::RESPONSE_CANCEL; + + if (r != Gtk::RESPONSE_OK) { + return true; } if (unique_name (_name.get_text())) { |