summaryrefslogtreecommitdiffstats
path: root/src/shared
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-04-23 02:26:46 +0000
committerDavid Robillard <d@drobilla.net>2012-04-23 02:26:46 +0000
commit8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef (patch)
tree687624fd73bf021fb6d1296f1d50b163393ec7f6 /src/shared
parent211beb645d1337f9f7590378681dd891e954740c (diff)
downloadingen-8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef.tar.gz
ingen-8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef.tar.bz2
ingen-8601ab0fe6c5782cc38de48576eb2f7c4fb2ccef.zip
Fire signal and update GUI correctly when renaming ports.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4251 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/ResourceImpl.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp
index 95f2031a..2a2ceb96 100644
--- a/src/shared/ResourceImpl.cpp
+++ b/src/shared/ResourceImpl.cpp
@@ -34,9 +34,11 @@ ResourceImpl::add_property(const Raul::URI& uri,
// Ignore duplicate statements
typedef Resource::Properties::const_iterator iterator;
const std::pair<iterator,iterator> range = _properties.equal_range(uri);
- for (iterator i = range.first; i != range.second && i != _properties.end(); ++i)
- if (i->second == value && i->second.context() == ctx)
+ for (iterator i = range.first; i != range.second && i != _properties.end(); ++i) {
+ if (i->second == value && i->second.context() == ctx) {
return;
+ }
+ }
const Raul::Atom& v = _properties.insert(make_pair(uri, Property(value, ctx)))->second;
on_property(uri, v);