summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_group.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/port_group.cc')
-rw-r--r--gtk2_ardour/port_group.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc
index 8d10be23c8..938e82af0b 100644
--- a/gtk2_ardour/port_group.cc
+++ b/gtk2_ardour/port_group.cc
@@ -565,6 +565,17 @@ PortGroupList::io_from_bundle (boost::shared_ptr<ARDOUR::Bundle> b) const
return boost::shared_ptr<IO> ();
}
+bool
+PortGroupList::empty () const
+{
+ List::const_iterator i = _groups.begin ();
+ while (i != _groups.end() && (*i)->total_channels() == 0) {
+ ++i;
+ }
+
+ return (i == _groups.end());
+}
+
RouteBundle::RouteBundle (boost::shared_ptr<Bundle> r)
: _route (r)