aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.cpp
diff options
context:
space:
mode:
authorJosip Delic <delijati@googlemail.com>2018-09-16 21:26:58 +0200
committerJosip Delic <delijati@googlemail.com>2018-09-16 21:26:58 +0200
commitfad9f09f3a2cd0090c80c9cb817734ce810e6f12 (patch)
treec9a45339a7c8dd1179e61ea0d2d8922738711407 /lib/jobs/basejob.cpp
parent6bb64db38f4a5f47d275a663861fd216f1bcf612 (diff)
parent52931841d816e2fd128579ef7e51eec1cbd0bb09 (diff)
downloadlibquotient-fad9f09f3a2cd0090c80c9cb817734ce810e6f12.tar.gz
libquotient-fad9f09f3a2cd0090c80c9cb817734ce810e6f12.zip
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'lib/jobs/basejob.cpp')
-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;
}