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:
parent
bee34078e7
commit
4153288661
@ -145,9 +145,14 @@ RouteGroupDialog::do_run ()
|
|||||||
{
|
{
|
||||||
while (1) {
|
while (1) {
|
||||||
int const r = run ();
|
int const r = run ();
|
||||||
|
if (r == Gtk::RESPONSE_CANCEL) {
|
||||||
|
/* cancel, so just bail now */
|
||||||
|
return Gtk::RESPONSE_CANCEL;
|
||||||
|
}
|
||||||
|
|
||||||
if (unique_name ()) {
|
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);
|
_group->set_name (_initial_name);
|
||||||
|
Loading…
Reference in New Issue
Block a user