aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Vrátil <dvratil@kde.org>2016-08-13 23:25:22 (GMT)
committerDaniel Vrátil <dvratil@kde.org>2016-08-13 23:25:22 (GMT)
commitc926296a3f5f8f27fbbe8d5412cb19a0dda8a1e8 (patch)
tree4245d1430a632a08346d2d9fe056f1c6284810c0
parent2c9662aae78f701b84307238fde64970149fdbcb (diff)
ItemRetriever: only discard request with empty parts if mFullPayload is false
-rw-r--r--src/server/storage/itemretriever.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/storage/itemretriever.cpp b/src/server/storage/itemretriever.cpp
index d81227a..1d04501 100644
--- a/src/server/storage/itemretriever.cpp
+++ b/src/server/storage/itemretriever.cpp
@@ -278,7 +278,7 @@ bool ItemRetriever::exec()
query.finish();
Q_FOREACH (ItemRetrievalRequest *request, requests) {
- if (request->parts.isEmpty() || request->ids.isEmpty()) {
+ if ((!mFullPayload && request->parts.isEmpty()) || request->ids.isEmpty()) {
delete request;
continue;
}