summaryrefslogtreecommitdiffstats
path: root/common/domain/applicationdomaintype.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain/applicationdomaintype.cpp')
-rw-r--r--common/domain/applicationdomaintype.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp
index 60f884f..2a7f948 100644
--- a/common/domain/applicationdomaintype.cpp
+++ b/common/domain/applicationdomaintype.cpp
@@ -215,13 +215,15 @@ QVariant ApplicationDomainType::getProperty(const QByteArray &key) const
215void ApplicationDomainType::setProperty(const QByteArray &key, const QVariant &value) 215void ApplicationDomainType::setProperty(const QByteArray &key, const QVariant &value)
216{ 216{
217 Q_ASSERT(mAdaptor); 217 Q_ASSERT(mAdaptor);
218 auto existing = mAdaptor->getProperty(key); 218 if (!isAggregate()) {
219 if (existing.isValid() && existing == value) { 219 auto existing = mAdaptor->getProperty(key);
220 SinkTrace() << "Tried to set property that is still the same: " << key << value; 220 if (existing.isValid() && existing == value ) {
221 } else { 221 SinkTrace() << "Tried to set property that is still the same: " << key << value;
222 mChangeSet->insert(key); 222 return;
223 mAdaptor->setProperty(key, value); 223 }
224 } 224 }
225 mChangeSet->insert(key);
226 mAdaptor->setProperty(key, value);
225} 227}
226 228
227void ApplicationDomainType::setResource(const QByteArray &identifier) 229void ApplicationDomainType::setResource(const QByteArray &identifier)