diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-08 23:24:51 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-06-08 23:24:51 +0900 |
commit | 6767cb8eccea7b74531f59f165a28afa0bec61f4 (patch) | |
tree | ea3ffe2fc07d3a9b7b48ee2ab37b0fe594f1af85 /lib/csapi/search.cpp | |
parent | 4b1b308f28bdaef598a5dfc249d7af6a0346b367 (diff) | |
download | libquotient-6767cb8eccea7b74531f59f165a28afa0bec61f4.tar.gz libquotient-6767cb8eccea7b74531f59f165a28afa0bec61f4.zip |
csapi: Fix boolean query parameters incorrectly passed
Diffstat (limited to 'lib/csapi/search.cpp')
-rw-r--r-- | lib/csapi/search.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/csapi/search.cpp b/lib/csapi/search.cpp index d43f704b..d172dfbe 100644 --- a/lib/csapi/search.cpp +++ b/lib/csapi/search.cpp @@ -173,8 +173,7 @@ class SearchJob::Private BaseJob::Query queryToSearch(const QString& nextBatch) { BaseJob::Query _q; - if (!nextBatch.isEmpty()) - _q.addQueryItem("next_batch", nextBatch); + addToQuery<IfNotEmpty>(_q, "next_batch", nextBatch); return _q; } |