diff options
author | Petr Mrázek <peterix@gmail.com> | 2017-06-26 01:14:32 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2017-06-26 01:14:32 +0200 |
commit | 89d3a66658ebdb16582a4d7a2cab57cfd6906393 (patch) | |
tree | f3b4daf14a18db76de1b9998da16b505b3872d10 /api/logic/java | |
parent | 2973b11d3edf47fe437af4dd1dc1a5f250c49ba3 (diff) | |
download | MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.tar MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.tar.gz MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.tar.lz MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.tar.xz MultiMC-89d3a66658ebdb16582a4d7a2cab57cfd6906393.zip |
NOISSUE some safe refactors and changes of the task subsystem
Possibly also some bug fixes.
Diffstat (limited to 'api/logic/java')
-rw-r--r-- | api/logic/java/JavaCheckerJob.cpp | 3 | ||||
-rw-r--r-- | api/logic/java/JavaCheckerJob.h | 5 |
2 files changed, 1 insertions, 7 deletions
diff --git a/api/logic/java/JavaCheckerJob.cpp b/api/logic/java/JavaCheckerJob.cpp index 01b5b28d..a111af20 100644 --- a/api/logic/java/JavaCheckerJob.cpp +++ b/api/logic/java/JavaCheckerJob.cpp @@ -22,7 +22,7 @@ void JavaCheckerJob::partFinished(JavaCheckResult result) num_finished++; qDebug() << m_job_name.toLocal8Bit() << "progress:" << num_finished << "/" << javacheckers.size(); - emit progress(num_finished, javacheckers.size()); + setProgress(num_finished, javacheckers.size()); javaresults.replace(result.id, result); @@ -35,7 +35,6 @@ void JavaCheckerJob::partFinished(JavaCheckResult result) void JavaCheckerJob::executeTask() { qDebug() << m_job_name.toLocal8Bit() << " started."; - m_running = true; for (auto iter : javacheckers) { javaresults.append(JavaCheckResult()); diff --git a/api/logic/java/JavaCheckerJob.h b/api/logic/java/JavaCheckerJob.h index 58a98190..c27a50c3 100644 --- a/api/logic/java/JavaCheckerJob.h +++ b/api/logic/java/JavaCheckerJob.h @@ -58,10 +58,6 @@ public: { return javacheckers.size(); } - virtual bool isRunning() const override - { - return m_running; - } signals: void started(); @@ -80,5 +76,4 @@ private: qint64 current_progress = 0; qint64 total_progress = 0; int num_finished = 0; - bool m_running = false; }; |