Make Route Group dialog instant-apply. Disallow identically-named route group; fixes #3689.

git-svn-id: svn://localhost/ardour2/branches/3.0@8481 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-01-08 02:35:46 +00:00
parent 150d3fdfbf
commit af0030a6de
6 changed files with 111 additions and 62 deletions

View file

@ -113,13 +113,12 @@ RouteGroupMenu::new_group ()
RouteGroup* g = new RouteGroup (*_session, "");
g->apply_changes (*_default_properties);
RouteGroupDialog d (g, Gtk::Stock::NEW);
int const r = d.do_run ();
RouteGroupDialog d (g, true);
if (r == Gtk::RESPONSE_OK) {
if (d.do_run ()) {
delete g;
} else {
_session->add_route_group (g);
set_group (g);
} else {
delete g;
}
}