summaryrefslogtreecommitdiffstats
path: root/src/PatchageEvent.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/PatchageEvent.cpp')
-rw-r--r--src/PatchageEvent.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PatchageEvent.cpp b/src/PatchageEvent.cpp
index cef39f2..520b136 100644
--- a/src/PatchageEvent.cpp
+++ b/src/PatchageEvent.cpp
@@ -92,12 +92,12 @@ PatchageEvent::execute(Patchage* patchage)
assert(module);
module->remove_port(port);
- patchage->enqueue_resize(module);
port.reset();
// No empty modules (for now)
if (module->num_ports() == 0) {
- patchage->canvas()->remove_item(module);
+ if (!patchage->canvas()->remove_item(module))
+ Raul::error << "Failed to remove module `" << module->name() << "'" << endl;
module.reset();
} else {
patchage->enqueue_resize(module);