summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKevin Simons <kevin.simons@nokia.com>2012-03-27 10:14:41 +0200
committerQt by Nokia <qt-info@nokia.com>2012-03-27 11:09:42 +0200
commitb37fccbbbc03519f48c387d03c5186b2d149d036 (patch)
tree2469bfb169cf8ae38e0bb3f09183c5fcc8fa5d10 /tools
parent7ea503be36371efea628956d75a6ac56703e10cb (diff)
Make the client terminate properly when doing remove by query
Change-Id: I93001b6826f4d1e4ef2601fae058718c19a27f88 Reviewed-by: Jing Bai <jing.t.bai@nokia.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/jsondb-client/client.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/jsondb-client/client.cpp b/tools/jsondb-client/client.cpp
index 88235c97..f126e169 100644
--- a/tools/jsondb-client/client.cpp
+++ b/tools/jsondb-client/client.cpp
@@ -350,6 +350,9 @@ void Client::onRequestFinished()
void Client::aboutToRemove(void)
{
+ // remove the query from the request list
+ mRequests.takeFirst()->deleteLater();
+
QtJsonDb::QJsonDbRequest *queryRequest = qobject_cast<QtJsonDb::QJsonDbRequest *>(sender());
Q_ASSERT(queryRequest != 0);
if (!queryRequest)