summaryrefslogtreecommitdiffstats
path: root/src/PatchageEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r--src/PatchageEvent.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp
index 63fa029..4fbefdf 100644
--- a/src/PatchageEvent.cpp
+++ b/src/PatchageEvent.cpp
@@ -68,9 +68,11 @@ PatchageEvent::execute(Patchage* patchage)
#endif
}
-
if (driver) {
- if ( ! driver->create_port_view(patchage, _port_1))
+ SharedPtr<PatchagePort> port = driver->create_port_view(patchage, _port_1);
+ if (port)
+ patchage->enqueue_resize(port->module().lock());
+ else
cerr << "Unable to create port view" << endl;
} else {
cerr << "ERROR: Create port with unknown port type" << endl;
@@ -85,6 +87,7 @@ PatchageEvent::execute(Patchage* patchage)
assert(module);
module->remove_port(port);
+ patchage->enqueue_resize(module);
port.reset();
// No empty modules (for now)
@@ -92,7 +95,7 @@ PatchageEvent::execute(Patchage* patchage)
patchage->canvas()->remove_item(module);
module.reset();
} else {
- module->resize();
+ patchage->enqueue_resize(module);
}
} else {