diff options
Diffstat (limited to 'lib/jobs/basejob.cpp')
-rw-r--r-- | lib/jobs/basejob.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/jobs/basejob.cpp b/lib/jobs/basejob.cpp index 8d11cc83..9a5460d4 100644 --- a/lib/jobs/basejob.cpp +++ b/lib/jobs/basejob.cpp @@ -505,14 +505,18 @@ QByteArray BaseJob::errorDetails() const void BaseJob::setStatus(Status s) { + if (d->status == s) + return; + + s.message.replace(d->connection->accessToken(), "(REDACTED)"); if (!s.good()) qCWarning(d->logCat) << this << "status" << s; d->status = std::move(s); + emit statusChanged(d->status); } void BaseJob::setStatus(int code, QString message) { - message.replace(d->connection->accessToken(), "(REDACTED)"); setStatus({ code, std::move(message) }); } |