diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/PatchageEvent.cpp | 4 |
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); |