diff options
Diffstat (limited to 'common/queryrunner.cpp')
-rw-r--r-- | common/queryrunner.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/common/queryrunner.cpp b/common/queryrunner.cpp index 9ac3517..7d6d279 100644 --- a/common/queryrunner.cpp +++ b/common/queryrunner.cpp | |||
@@ -271,7 +271,14 @@ void QueryWorker<DomainType>::resultProviderCallback(const Sink::Query &query, S | |||
271 | for (auto it = result.aggregateValues.constBegin(); it != result.aggregateValues.constEnd(); it++) { | 271 | for (auto it = result.aggregateValues.constBegin(); it != result.aggregateValues.constEnd(); it++) { |
272 | valueCopy->setProperty(it.key(), it.value()); | 272 | valueCopy->setProperty(it.key(), it.value()); |
273 | } | 273 | } |
274 | valueCopy->aggregatedIds() = result.aggregateIds; | 274 | valueCopy->aggregatedIds() = [&] { |
275 | QVector<QByteArray> aggregateIdsBA; | ||
276 | aggregateIdsBA.reserve(result.aggregateIds.size()); | ||
277 | for (const auto &id : result.aggregateIds) { | ||
278 | aggregateIdsBA << id.toDisplayByteArray(); | ||
279 | } | ||
280 | return aggregateIdsBA; | ||
281 | }(); | ||
275 | if (mResultTransformation) { | 282 | if (mResultTransformation) { |
276 | mResultTransformation(*valueCopy); | 283 | mResultTransformation(*valueCopy); |
277 | } | 284 | } |