Fix 6783, Using "Esc" key doesn't cancel creating new Track/Bus Group
[ardour.git] / gtk2_ardour / route_group_dialog.cc
index f55281f582b5efeb4be60550082c18c0bfe81def..9221a67948964e5d683c0c732fd2adb3ed26b630 100644 (file)
@@ -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())) {