From 1631460b986285cdeb58462836f8a825ac1c7975 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 18 Aug 2008 20:15:49 +0000 Subject: Fix double destruction notification (annoying message popup on delete). git-svn-id: http://svn.drobilla.net/lad/ingen@1435 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/engine/events/DestroyEvent.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/libs/engine/events') 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 { -- cgit v1.2.1