summaryrefslogtreecommitdiffstats
path: root/logic/java/JavaVersionList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'logic/java/JavaVersionList.cpp')
-rw-r--r--logic/java/JavaVersionList.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/logic/java/JavaVersionList.cpp b/logic/java/JavaVersionList.cpp
index 52f2e62f..a463ca6c 100644
--- a/logic/java/JavaVersionList.cpp
+++ b/logic/java/JavaVersionList.cpp
@@ -162,7 +162,7 @@ void JavaListLoadTask::executeTask()
m_job = std::shared_ptr<JavaCheckerJob>(new JavaCheckerJob("Java detection"));
connect(m_job.get(), SIGNAL(finished(QList<JavaCheckResult>)), this, SLOT(javaCheckerFinished(QList<JavaCheckResult>)));
- connect(m_job.get(), SIGNAL(progress(qint64,qint64)), this, SLOT(checkerProgress(qint64, qint64)));
+ connect(m_job.get(), &Task::progress, this, &Task::setProgress);
qDebug() << "Probing the following Java paths: ";
int id = 0;
@@ -181,12 +181,6 @@ void JavaListLoadTask::executeTask()
m_job->start();
}
-void JavaListLoadTask::checkerProgress(qint64 current, qint64 total)
-{
- float progress = (current * 100.0) / total;
- this->setProgress((int) progress);
-}
-
void JavaListLoadTask::javaCheckerFinished(QList<JavaCheckResult> results)
{
QList<JavaVersionPtr> candidates;