summaryrefslogtreecommitdiffstats
path: root/src/libs
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-18 20:15:49 +0000
committerDavid Robillard <d@drobilla.net>2008-08-18 20:15:49 +0000
commit1631460b986285cdeb58462836f8a825ac1c7975 (patch)
treec6634232c55800e8119b84818198efd31581f30e /src/libs
parent0e0c7dcda848838e5321b4eb80bae5f0f00d056f (diff)
downloadingen-1631460b986285cdeb58462836f8a825ac1c7975.tar.gz
ingen-1631460b986285cdeb58462836f8a825ac1c7975.tar.bz2
ingen-1631460b986285cdeb58462836f8a825ac1c7975.zip
Fix double destruction notification (annoying message popup on delete).
git-svn-id: http://svn.drobilla.net/lad/ingen@1435 a436a847-0d15-0410-975c-d299462d15a1
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 {