summaryrefslogtreecommitdiff
path: root/libs/ardour/route_group.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2010-01-13 01:40:07 +0000
committerCarl Hetherington <carl@carlh.net>2010-01-13 01:40:07 +0000
commit9e0d03020ff47773f7d1c0414de1c74e6c9e0dac (patch)
treec4b53b988408727203551373084fafe2e5f5d4f5 /libs/ardour/route_group.cc
parent92fbcd021d7d29390227521aa8c41ac273c99e04 (diff)
assert() to help find some possible causes of #2991. Fix some confusion with GTK signal emission from RadioMenuElems as applied to route group selection.
git-svn-id: svn://localhost/ardour2/branches/3.0@6482 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route_group.cc')
-rw-r--r--libs/ardour/route_group.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/libs/ardour/route_group.cc b/libs/ardour/route_group.cc
index d59ec82236..f1a3a67a89 100644
--- a/libs/ardour/route_group.cc
+++ b/libs/ardour/route_group.cc
@@ -71,6 +71,8 @@ RouteGroup::set_name (string str)
int
RouteGroup::add (boost::shared_ptr<Route> r)
{
+ assert (find (routes->begin(), routes->end(), r) == routes->end ());
+
r->leave_route_group ();
routes->push_back (r);