summaryrefslogtreecommitdiffstats
path: root/src/gui/PatchPortModule.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/PatchPortModule.cpp')
-rw-r--r--src/gui/PatchPortModule.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/gui/PatchPortModule.cpp b/src/gui/PatchPortModule.cpp
index 58c05711..14edf6c5 100644
--- a/src/gui/PatchPortModule.cpp
+++ b/src/gui/PatchPortModule.cpp
@@ -153,11 +153,7 @@ PatchPortModule::property_changed(const URI& key, const Atom& value)
set_stacked(value.get_bool());
} else if (key == uris.ingen_selected) {
if (value.get_bool() != get_selected()) {
- if (value.get_bool()) {
- canvas()->select_item(this);
- } else {
- canvas()->unselect_item(this);
- }
+ set_selected(value.get_bool());
}
}
default: break;