summaryrefslogtreecommitdiffstats
path: root/src/PatchageEvent.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-06-09 03:41:17 +0000
committerDavid Robillard <d@drobilla.net>2011-06-09 03:41:17 +0000
commitfc57e53e2554aa1a654d66bb7b97a8738bb77fb5 (patch)
tree0376956f6b461dad39ce4e3acb4ea8a62b3f7dda /src/PatchageEvent.cpp
parent91cdc941af88e8ba6e19673eb17825233db2218c (diff)
downloadpatchage-fc57e53e2554aa1a654d66bb7b97a8738bb77fb5.tar.gz
patchage-fc57e53e2554aa1a654d66bb7b97a8738bb77fb5.tar.bz2
patchage-fc57e53e2554aa1a654d66bb7b97a8738bb77fb5.zip
Automatically resize modules at update time as necessary.
This avoids the huge multiple resize performance problems of the past without requiring the user to manually resize modules. git-svn-id: http://svn.drobilla.net/lad/trunk/patchage@3375 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r--src/PatchageEvent.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp
index 32136e3..cf53c03 100644
--- a/src/PatchageEvent.cpp
+++ b/src/PatchageEvent.cpp
@@ -72,9 +72,7 @@ PatchageEvent::execute(Patchage* patchage)
if (driver) {
PatchagePort* port = driver->create_port_view(patchage, _port_1);
- if (port)
- patchage->enqueue_resize(port->module());
- else
+ if (!port)
Raul::error << "Unable to create port view: " << _port_1 << endl;
} else {
Raul::error << "Attempt to create port with unknown type: " << _port_1 << endl;