summaryrefslogtreecommitdiffstats
path: root/src/gui/Port.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/Port.cpp')
-rw-r--r--src/gui/Port.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index d710f10d..84557548 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -224,9 +224,9 @@ Port::property_changed(const URI& key, const Atom& value)
set_control_min(value.get_float());
else if (key == uris.lv2_maximum)
set_control_max(value.get_float());
- } else if (value.type() == Atom::BOOL) {
- if ((key == uris.lv2_toggled))
- set_toggled(value.get_bool());
+ } else if (key == uris.lv2_portProperty) {
+ if (value == uris.lv2_toggled)
+ set_toggled(true);
} else if (value.type() == Atom::URI) {
ArtVpathDash* dash = this->dash();
_rect->property_dash() = dash;