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.
This commit is contained in:
Tim Mayberry 2016-02-22 15:22:56 +10:00
parent 30497db823
commit 100e156727

View 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())) {