diff options
-rw-r--r-- | common/datastorequery.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp index ff255f4..aa7b772 100644 --- a/common/datastorequery.cpp +++ b/common/datastorequery.cpp | |||
@@ -172,6 +172,11 @@ public: | |||
172 | } | 172 | } |
173 | } | 173 | } |
174 | 174 | ||
175 | void reset() | ||
176 | { | ||
177 | mResult.clear(); | ||
178 | } | ||
179 | |||
175 | QVariant result() const | 180 | QVariant result() const |
176 | { | 181 | { |
177 | return mResult; | 182 | return mResult; |
@@ -225,6 +230,9 @@ public: | |||
225 | QVariant selectionResultValue; | 230 | QVariant selectionResultValue; |
226 | QByteArray selectionResult; | 231 | QByteArray selectionResult; |
227 | auto results = indexLookup(mReductionProperty, reductionValue); | 232 | auto results = indexLookup(mReductionProperty, reductionValue); |
233 | for (auto &aggregator : mAggregators) { | ||
234 | aggregator.reset(); | ||
235 | } | ||
228 | 236 | ||
229 | QVariantList list; | 237 | QVariantList list; |
230 | for (const auto r : results) { | 238 | for (const auto r : results) { |