aboutsummaryrefslogtreecommitdiff
path: root/lib/jobs/basejob.h
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 21:32:07 +0100
committerKitsune Ral <Kitsune-Ral@users.sf.net>2021-01-07 21:32:07 +0100
commit78a3137920d9680072dc3796dd90f849e8467fd4 (patch)
treefeec4de641d5663c57f31a5ae2c71bf86a42c8c1 /lib/jobs/basejob.h
parentaa790406aa0b076938f877e38545baf481a986ec (diff)
downloadlibquotient-78a3137920d9680072dc3796dd90f849e8467fd4.tar.gz
libquotient-78a3137920d9680072dc3796dd90f849e8467fd4.zip
isJobRunning() -> isJobPending()
To be very clear what this function checks. See also #437.
Diffstat (limited to 'lib/jobs/basejob.h')
-rw-r--r--lib/jobs/basejob.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/jobs/basejob.h b/lib/jobs/basejob.h
index a72f6120..317d5701 100644
--- a/lib/jobs/basejob.h
+++ b/lib/jobs/basejob.h
@@ -478,7 +478,7 @@ private:
QScopedPointer<Private> d;
};
-inline bool isJobRunning(BaseJob* job)
+inline bool isJobPending(BaseJob* job)
{
return job && job->error() == BaseJob::Pending;
}