aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/PortModel.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-03 06:08:08 +0000
committerDavid Robillard <d@drobilla.net>2010-02-03 06:08:08 +0000
commit44859a84f0bad75cb358dc1d91e5cfcdeda10ba7 (patch)
treebf16298b7448f7b696bbe0649940838e7504861b /src/client/PortModel.cpp
parent87597f85c5a69a9accd3ce2ed88f2a006173e885 (diff)
downloadingen-44859a84f0bad75cb358dc1d91e5cfcdeda10ba7.tar.gz
ingen-44859a84f0bad75cb358dc1d91e5cfcdeda10ba7.tar.bz2
ingen-44859a84f0bad75cb358dc1d91e5cfcdeda10ba7.zip
Bind ports with lv2:portProperty lv2:toggled specially (on iff value >= half).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2410 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/client/PortModel.cpp')
-rw-r--r--src/client/PortModel.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/client/PortModel.cpp b/src/client/PortModel.cpp
index 5d4cb417..a818b04f 100644
--- a/src/client/PortModel.cpp
+++ b/src/client/PortModel.cpp
@@ -37,8 +37,7 @@ PortModel::set_property(const Raul::URI& uri,
bool
PortModel::has_hint(const std::string& qname) const
{
- const Raul::Atom& hint = get_property(qname);
- return (hint.is_valid() && hint.get_bool() > 0);
+ return has_property(Shared::LV2URIMap::instance().lv2_portProperty, qname);
}