aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-15 19:34:53 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-09-16 17:35:04 +0900
commit343341e1422251a863149cad515b955aae395569 (patch)
treeda3d9aa8c18c4a11fc99ed7c545a74d3bcd8aabc /lib/jobs
parent602a93be0160f099f6ef5dfeedac7ef91014c0f0 (diff)
downloadlibquotient-343341e1422251a863149cad515b955aae395569.tar.gz
libquotient-343341e1422251a863149cad515b955aae395569.zip
BaseJob::rawData: only add "truncated" when actually truncated
Diffstat (limited to 'lib/jobs')
-rw-r--r--lib/jobs/basejob.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index f9628c19..979fa431 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -514,7 +514,7 @@ BaseJob::Status BaseJob::status() const
QByteArray BaseJob::rawData(int bytesAtMost) const
{
- return bytesAtMost > 0 ?
+ return bytesAtMost > 0 && d->rawResponse.size() > bytesAtMost ?
d->rawResponse.left(bytesAtMost) + "...(truncated)" : d->rawResponse;
}