mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-03 04:09:29 +01:00
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:
parent
150d3fdfbf
commit
af0030a6de
6 changed files with 111 additions and 62 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue