diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-20 10:38:37 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-02-20 10:38:37 +0900 |
commit | d54bdd710163afe9e09b2c4c65bbf21454ed2ceb (patch) | |
tree | 10fa80e66ad06c803d0283a3ace183996b4cada8 /jobs/basejob.cpp | |
parent | 3bf51eea5e6152cd39daa971ac6f88d0571ce198 (diff) | |
download | libquotient-d54bdd710163afe9e09b2c4c65bbf21454ed2ceb.tar.gz libquotient-d54bdd710163afe9e09b2c4c65bbf21454ed2ceb.zip |
BaseJob: added Abandoned status
For a very brief period between calling BaseJob::abandon() and deletion of the job object.
Diffstat (limited to 'jobs/basejob.cpp')
-rw-r--r-- | jobs/basejob.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jobs/basejob.cpp b/jobs/basejob.cpp index c35a7711..5f5aa410 100644 --- a/jobs/basejob.cpp +++ b/jobs/basejob.cpp @@ -448,6 +448,7 @@ void BaseJob::setStatus(int code, QString message) void BaseJob::abandon() { beforeAbandon(d->reply.data()); + setStatus(Abandoned); this->disconnect(); if (d->reply) d->reply->disconnect(this); |