summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/engine/events/DestroyEvent.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libs/engine/events/DestroyEvent.cpp b/src/libs/engine/events/DestroyEvent.cpp
index 9c9db2db..07770c0a 100644
--- a/src/libs/engine/events/DestroyEvent.cpp
+++ b/src/libs/engine/events/DestroyEvent.cpp
@@ -162,9 +162,7 @@ DestroyEvent::execute(ProcessContext& context)
void
DestroyEvent::post_process()
{
- if (_node || _port) {
- _engine.broadcaster()->send_destroyed(_path);
- } else {
+ if (!_node && !_port) {
if (_path == "/") {
_responder->respond_error("You can not destroy the root patch (/)");
} else {