diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-30 15:20:43 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-05-30 15:20:43 +0900 |
commit | 7e15f82aebf79ad95794c4a5dc7d2929e48df4ff (patch) | |
tree | 830880438d4cbda68fd6e0c09a29f9b773dc671b /lib/jobs | |
parent | c55c1cc83985f808e9cfc7475e5113566a1ac5a8 (diff) | |
download | libquotient-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')
-rw-r--r-- | lib/jobs/basejob.cpp | 3 |
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); |