Be a little bit less complainy about setting state that

already exists; useful when the port matrix is in
show-only-bundles mode and it is to some extent
guessing what connections to make.


git-svn-id: svn://localhost/ardour2/branches/3.0@10517 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-11-09 22:26:16 +00:00
parent 244eaa55fb
commit 419f85be4e
1 changed files with 6 additions and 2 deletions

View File

@ -145,9 +145,13 @@ IOSelector::set_state (ARDOUR::BundleChannel c[2], bool s)
}
if (s) {
_io->connect (f, *j, 0);
if (!f->connected_to (*j)) {
_io->connect (f, *j, 0);
}
} else {
_io->disconnect (f, *j, 0);
if (f->connected_to (*j)) {
_io->disconnect (f, *j, 0);
}
}
}
}