aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/jobs')
-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);