summaryrefslogtreecommitdiffstats
path: root/common/store.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-06 20:40:44 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-06 20:40:44 +0200
commit373b444d83ad217574a738383fde9f9b36d89f7d (patch)
tree18e7be638dbeae25aa59984306fee1cc679df752 /common/store.cpp
parent6fa6ebe8dbc9f1910ea6d91dd6eea20f2c934f65 (diff)
downloadsink-373b444d83ad217574a738383fde9f9b36d89f7d.tar.gz
sink-373b444d83ad217574a738383fde9f9b36d89f7d.zip
Don't call setFinished twice
setError already does that for us.
Diffstat (limited to 'common/store.cpp')
-rw-r--r--common/store.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/common/store.cpp b/common/store.cpp
index 0ac99be..2ee6695 100644
--- a/common/store.cpp
+++ b/common/store.cpp
@@ -256,8 +256,8 @@ KAsync::Job<QList<typename DomainType::Ptr>> Store::fetch(const Sink::Query &que
256 future.setError(1, "Not enough values."); 256 future.setError(1, "Not enough values.");
257 } else { 257 } else {
258 future.setValue(*list); 258 future.setValue(*list);
259 future.setFinished();
259 } 260 }
260 future.setFinished();
261 } 261 }
262 }); 262 });
263 } 263 }