summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-03-11 01:47:34 +0000
committerDavid Robillard <d@drobilla.net>2012-03-11 01:47:34 +0000
commitb77cf5f715f94ec172d3e759b3c4e03761374556 (patch)
tree67f755ca1f4af6aa67620341cefad6a0d2e0e8f6 /src/shared
parent905fbd7d76b541c12fe500a4b8c775a64275487b (diff)
downloadingen-b77cf5f715f94ec172d3e759b3c4e03761374556.tar.gz
ingen-b77cf5f715f94ec172d3e759b3c4e03761374556.tar.bz2
ingen-b77cf5f715f94ec172d3e759b3c4e03761374556.zip
Fix UI response to property changes like port value (fix #779).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4045 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ResourceImpl.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp
index 6f4b713b..fb50ac54 100644
--- a/src/shared/ResourceImpl.cpp
+++ b/src/shared/ResourceImpl.cpp
@@ -38,12 +38,14 @@ ResourceImpl::add_property(const Raul::URI& uri,
if (i->second == value && i->second.context() == ctx)
return;
- _properties.insert(make_pair(uri, Property(value, ctx)));
+ const Raul::Atom& v = _properties.insert(make_pair(uri, Property(value, ctx)))->second;
+ on_property(uri, v);
}
const Raul::Atom&
-ResourceImpl::set_property(const Raul::URI& uri, const Raul::Atom& value,
- Resource::Graph ctx)
+ResourceImpl::set_property(const Raul::URI& uri,
+ const Raul::Atom& value,
+ Resource::Graph ctx)
{
// Erase existing property in this context
for (Properties::iterator i = _properties.find(uri);
@@ -57,7 +59,9 @@ ResourceImpl::set_property(const Raul::URI& uri, const Raul::Atom& value,
}
// Insert new property
- return _properties.insert(make_pair(uri, Property(value, ctx)))->second;
+ const Raul::Atom& v = _properties.insert(make_pair(uri, Property(value, ctx)))->second;
+ on_property(uri, v);
+ return v;
}
void