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:
parent
244eaa55fb
commit
419f85be4e
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user