From 4f1ec5deaf3205e4d71dcb0ff35a29cfbb2c8ec1 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Fri, 9 Oct 2015 10:30:51 +0200 Subject: A null value means the generator has nothing to generate anymore. --- common/entitystorage.cpp | 1 - common/resultset.h | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/common/entitystorage.cpp b/common/entitystorage.cpp index 33b65d6..b77b481 100644 --- a/common/entitystorage.cpp +++ b/common/entitystorage.cpp @@ -148,7 +148,6 @@ ResultSet EntityStorageBase::getResultSet(const Akonadi2::Query &query, Akonadi2 return key; } //We're done - //FIXME make sure result set understands that this means we're done return QByteArray(); }); } diff --git a/common/resultset.h b/common/resultset.h index a888177..746b94b 100644 --- a/common/resultset.h +++ b/common/resultset.h @@ -70,6 +70,9 @@ class ResultSet { } return mIt != mResultSet.constEnd(); } + if (!mCurrentValue.isNull()) { + return true; + } return false; } -- cgit v1.2.3