summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/datastorequery.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/datastorequery.cpp b/common/datastorequery.cpp
index 276a10a..f1b0ed2 100644
--- a/common/datastorequery.cpp
+++ b/common/datastorequery.cpp
@@ -345,8 +345,11 @@ public:
345 //Redo the reduction to find new aggregated values 345 //Redo the reduction to find new aggregated values
346 auto selectionResult = reduceOnValue(reductionValue); 346 auto selectionResult = reduceOnValue(reductionValue);
347 347
348 //TODO if old and new are the same a modification would be enough
349 auto oldSelectionResult = mSelectedValues.take(reductionValueBa); 348 auto oldSelectionResult = mSelectedValues.take(reductionValueBa);
349 //If mSelectedValues did not containthe value, oldSelectionResult will be empty.(Happens if entites have been filtered)
350 if (oldSelectionResult.isEmpty()) {
351 return;
352 }
350 if (oldSelectionResult == selectionResult.selection) { 353 if (oldSelectionResult == selectionResult.selection) {
351 mSelectedValues.insert(reductionValueBa, selectionResult.selection); 354 mSelectedValues.insert(reductionValueBa, selectionResult.selection);
352 Q_ASSERT(!selectionResult.selection.isEmpty()); 355 Q_ASSERT(!selectionResult.selection.isEmpty());