summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-13 14:36:12 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-09-13 14:36:12 +0200
commitea2e02ad656640c17d520b5a22c168c3c1faef56 (patch)
tree389b8bae5bdb3feae4b9f1e5f29b1d54f7561456 /common
parent02e69f585d489b413b57d6d5b1abcdc5b04d4371 (diff)
downloadsink-ea2e02ad656640c17d520b5a22c168c3c1faef56.tar.gz
sink-ea2e02ad656640c17d520b5a22c168c3c1faef56.zip
comments
Diffstat (limited to 'common')
-rw-r--r--common/datastorequery.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp
index ad21910..f3d9415 100644
--- a/common/datastorequery.cpp
+++ b/common/datastorequery.cpp
@@ -303,8 +303,9 @@ public:
303 } else { 303 } else {
304 //During initial query, do nothing. The lookup above will take care of it. 304 //During initial query, do nothing. The lookup above will take care of it.
305 //During updates adjust the reduction according to the modification/addition or removal 305 //During updates adjust the reduction according to the modification/addition or removal
306 //We have to redo the reduction for every element, because of the aggregation values.
306 if (mIncremental) { 307 if (mIncremental) {
307 //redo the reduction 308 //Redo the reduction to find new aggregated values
308 QMap<QByteArray, QVariant> aggregateValues; 309 QMap<QByteArray, QVariant> aggregateValues;
309 auto selectionResult = reduceOnValue(reductionValue, aggregateValues); 310 auto selectionResult = reduceOnValue(reductionValue, aggregateValues);
310 311