summaryrefslogtreecommitdiffstats
path: root/src/AlsaDriver.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-11-27 06:33:35 +0000
committerDavid Robillard <d@drobilla.net>2011-11-27 06:33:35 +0000
commitf158d5a094288602b2663f114d39d287245ebe71 (patch)
treed36963bbace825db6505d70d2af1401d464d5588 /src/AlsaDriver.cpp
parentbcbd762544c0a67d3c3dab1dd0afd438bdf58fba (diff)
downloadpatchage-f158d5a094288602b2663f114d39d287245ebe71.tar.gz
patchage-f158d5a094288602b2663f114d39d287245ebe71.tar.bz2
patchage-f158d5a094288602b2663f114d39d287245ebe71.zip
Remove linear searching for connections.
Remove redundant connection lists stored in Connectable. Add arrange and straight connections options to flowcanvas_bench. Add Connection::set_curved(). git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3652 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/AlsaDriver.cpp')
-rw-r--r--src/AlsaDriver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AlsaDriver.cpp b/src/AlsaDriver.cpp
index 6374f0f..7ddb3d1 100644
--- a/src/AlsaDriver.cpp
+++ b/src/AlsaDriver.cpp
@@ -162,7 +162,7 @@ AlsaDriver::refresh()
continue;
PatchagePort* port2 = _app->canvas()->find_port(PortID(*addr2, true));
- if (port2 && !port->is_connected_to(port2)) {
+ if (port2 && !_app->canvas()->get_connection(port, port2)) {
_app->canvas()->make_connection(port,
port2,
port->color() + 0x22222200);