aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-30 15:20:43 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-05-30 15:20:43 +0900
commit7e15f82aebf79ad95794c4a5dc7d2929e48df4ff (patch)
tree830880438d4cbda68fd6e0c09a29f9b773dc671b /lib/jobs/basejob.cpp
parentc55c1cc83985f808e9cfc7475e5113566a1ac5a8 (diff)
downloadlibquotient-7e15f82aebf79ad95794c4a5dc7d2929e48df4ff.tar.gz
libquotient-7e15f82aebf79ad95794c4a5dc7d2929e48df4ff.zip
BaseJob::setStatus: Don't try to remove access token if it's empty
Closes #210.
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r--lib/jobs/basejob.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp
index a8fc0adc..6ed9862f 100644
--- a/lib/jobs/basejob.cpp
+++ b/lib/jobs/basejob.cpp
@@ -576,7 +576,8 @@ void BaseJob::setStatus(Status s)
if (d->status == s)
return;
- s.message.replace(d->connection->accessToken(), "(REDACTED)");
+ if (!d->connection->accessToken().isEmpty())
+ s.message.replace(d->connection->accessToken(), "(REDACTED)");
if (!s.good())
qCWarning(d->logCat) << this << "status" << s;
d->status = std::move(s);