Fix cancel button in route group dialogue, as per #3689.

git-svn-id: svn://localhost/ardour2/branches/3.0@8483 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-01-08 15:19:44 +00:00
parent bee34078e7
commit 4153288661

View File

@ -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);