projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Be a little bit less complainy about setting state that
[ardour.git]
/
gtk2_ardour
/
io_selector.cc
diff --git
a/gtk2_ardour/io_selector.cc
b/gtk2_ardour/io_selector.cc
index fea21ced0f369cd5bc7ada867f80793e49c79ab9..f77123a684f40dd9a1b8ceef8a952fd90957c15c 100644
(file)
--- a/
gtk2_ardour/io_selector.cc
+++ b/
gtk2_ardour/io_selector.cc
@@
-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);
+ }
}
}
}