summaryrefslogtreecommitdiff
path: root/gtk2_ardour/port_group.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2009-02-02 22:17:06 +0000
committerCarl Hetherington <carl@carlh.net>2009-02-02 22:17:06 +0000
commit54afc94e62b6397286d545744cea796f93f4b5f9 (patch)
tree589c5eedfb63e96da410801e1f8cc3d3d4c06cd1 /gtk2_ardour/port_group.cc
parent633629b2b1590b687a79990fe1fb0df35301e709 (diff)
Re-enable creation of stereo bundles for system IO, so that the mixer strip
connection menus for stereo tracks are populated again. Also enable disconnection via these menus. git-svn-id: svn://localhost/ardour2/branches/3.0@4481 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/port_group.cc')
-rw-r--r--gtk2_ardour/port_group.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/gtk2_ardour/port_group.cc b/gtk2_ardour/port_group.cc
index 405d503016..d0c56d02a4 100644
--- a/gtk2_ardour/port_group.cc
+++ b/gtk2_ardour/port_group.cc
@@ -192,11 +192,12 @@ PortGroupList::gather (ARDOUR::Session& session, bool inputs)
}
}
- /* Bundles created by the session */
+ /* Bundles created by the session. We only add the mono ones,
+ otherwise there is duplication of the same ports within the matrix */
boost::shared_ptr<ARDOUR::BundleList> b = session.bundles ();
for (ARDOUR::BundleList::iterator i = b->begin(); i != b->end(); ++i) {
- if ((*i)->ports_are_inputs() == inputs && (*i)->type() == _type) {
+ if ((*i)->nchannels() == 1 && (*i)->ports_are_inputs() == inputs && (*i)->type() == _type) {
system->add_bundle (*i);
}
}