summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/route_group_dialog.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk2_ardour/route_group_dialog.cc b/gtk2_ardour/route_group_dialog.cc
index a807741d1d..b7c8895d8e 100644
--- a/gtk2_ardour/route_group_dialog.cc
+++ b/gtk2_ardour/route_group_dialog.cc
@@ -145,9 +145,14 @@ RouteGroupDialog::do_run ()
{
while (1) {
int const r = run ();
+ if (r == Gtk::RESPONSE_CANCEL) {
+ /* cancel, so just bail now */
+ return Gtk::RESPONSE_CANCEL;
+ }
if (unique_name ()) {
- return (r == Gtk::RESPONSE_CANCEL);
+ /* not cancelled and the name is ok, so all is well */
+ return false;
}
_group->set_name (_initial_name);