Only add session bundles that are of the correct type.

git-svn-id: svn://localhost/ardour2/branches/3.0@4420 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2009-01-21 03:07:28 +00:00
parent f6f3769ae1
commit c5659dda6e

View file

@ -209,7 +209,7 @@ PortGroupList::set_offer_inputs (bool i)
void
PortGroupList::maybe_add_session_bundle (boost::shared_ptr<ARDOUR::Bundle> b)
{
if (b->ports_are_inputs () == _offer_inputs) {
if (b->ports_are_inputs () == _offer_inputs && b->type () == _type) {
_system.bundles.push_back (b);
}
}