diff options
Diffstat (limited to 'common/datastorequery.cpp')
-rw-r--r-- | common/datastorequery.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp index 263d3ea..0195cfc 100644 --- a/common/datastorequery.cpp +++ b/common/datastorequery.cpp | |||
@@ -319,6 +319,7 @@ public: | |||
319 | //For removals we have to read the last revision to get a value, and thus be able to find the correct thread. | 319 | //For removals we have to read the last revision to get a value, and thus be able to find the correct thread. |
320 | QVariant reductionValue; | 320 | QVariant reductionValue; |
321 | readPrevious(result.entity.identifier(), [&] (const ApplicationDomain::ApplicationDomainType &prev) { | 321 | readPrevious(result.entity.identifier(), [&] (const ApplicationDomain::ApplicationDomainType &prev) { |
322 | Q_ASSERT(result.entity.identifier() == prev.identifier()); | ||
322 | reductionValue = prev.getProperty(mReductionProperty); | 323 | reductionValue = prev.getProperty(mReductionProperty); |
323 | }); | 324 | }); |
324 | return reductionValue; | 325 | return reductionValue; |