summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/events
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/events')
-rw-r--r--src/libs/engine/events/EnablePatchEvent.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libs/engine/events/EnablePatchEvent.cpp b/src/libs/engine/events/EnablePatchEvent.cpp
index 48657146..04759cea 100644
--- a/src/libs/engine/events/EnablePatchEvent.cpp
+++ b/src/libs/engine/events/EnablePatchEvent.cpp
@@ -75,10 +75,7 @@ EnablePatchEvent::post_process()
{
if (_patch != NULL) {
_responder->respond_ok();
- if (_enable)
- _engine.broadcaster()->send_patch_enable(_patch_path);
- else
- _engine.broadcaster()->send_patch_disable(_patch_path);
+ _engine.broadcaster()->send_property_change(_patch_path, "ingen:enabled", (bool)_enable);
} else {
_responder->respond_error(string("Patch ") + _patch_path + " not found");
}