From e5b4b5d2954d72f0323ced8e7d14f5ce9606e4cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Fri, 7 Jul 2017 19:46:56 +0200 Subject: GH-1927 Add more specific task status logging * Tasks are now described by class name and object name (or memory address). * Tasks starts are logged. * Aborted tasks are now treated just as the other cases. --- api/logic/net/NetJob.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'api/logic/net/NetJob.h') diff --git a/api/logic/net/NetJob.h b/api/logic/net/NetJob.h index 2b5c3d9a..6ae3a73f 100644 --- a/api/logic/net/NetJob.h +++ b/api/logic/net/NetJob.h @@ -30,7 +30,10 @@ class MULTIMC_LOGIC_EXPORT NetJob : public Task { Q_OBJECT public: - explicit NetJob(QString job_name) : Task(), m_job_name(job_name) {} + explicit NetJob(QString job_name) : Task() + { + setObjectName(job_name); + } virtual ~NetJob() {} bool addNetAction(NetActionPtr action); @@ -77,7 +80,6 @@ private: qint64 total_progress = 1; int failures = 0; }; - QString m_job_name; QList downloads; QList parts_progress; QQueue m_todo; -- cgit v1.2.3