summaryrefslogtreecommitdiff
path: root/gtk2_ardour/bundle_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2_ardour/bundle_manager.cc')
-rw-r--r--gtk2_ardour/bundle_manager.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/gtk2_ardour/bundle_manager.cc b/gtk2_ardour/bundle_manager.cc
index 04bf240f7c..0f4bdb3c75 100644
--- a/gtk2_ardour/bundle_manager.cc
+++ b/gtk2_ardour/bundle_manager.cc
@@ -36,7 +36,7 @@ BundleEditorMatrix::BundleEditorMatrix (
: PortMatrix (session, bundle->type(), bundle->ports_are_inputs())
{
_port_group = new PortGroup ("", true);
- _port_group->bundles.push_back (bundle);
+ _port_group->add_bundle (bundle);
_row_ports.push_back (_port_group);
}
@@ -93,14 +93,14 @@ BundleEditorMatrix::add_channel (boost::shared_ptr<ARDOUR::Bundle> b)
return;
}
- _port_group->bundles.front()->add_channel (d.get_name());
+ _port_group->only_bundle()->add_channel (d.get_name());
setup ();
}
void
BundleEditorMatrix::remove_channel (boost::shared_ptr<ARDOUR::Bundle> b, uint32_t c)
{
- _port_group->bundles.front()->remove_channel (c);
+ _port_group->only_bundle()->remove_channel (c);
setup ();
}