From 78a299efd28792364b518e954cc3ae83769e06ab Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 22 Feb 2018 14:49:13 +0100 Subject: We can't assess property changes for aggregates. --- common/domain/applicationdomaintype.cpp | 14 ++++++++------ 1 file 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 void ApplicationDomainType::setProperty(const QByteArray &key, const QVariant &value) { Q_ASSERT(mAdaptor); - auto existing = mAdaptor->getProperty(key); - if (existing.isValid() && existing == value) { - SinkTrace() << "Tried to set property that is still the same: " << key << value; - } else { - mChangeSet->insert(key); - mAdaptor->setProperty(key, value); + if (!isAggregate()) { + auto existing = mAdaptor->getProperty(key); + if (existing.isValid() && existing == value ) { + SinkTrace() << "Tried to set property that is still the same: " << key << value; + return; + } } + mChangeSet->insert(key); + mAdaptor->setProperty(key, value); } void ApplicationDomainType::setResource(const QByteArray &identifier) -- cgit v1.2.3