summaryrefslogtreecommitdiffstats
path: root/logic/lists
diff options
context:
space:
mode:
authorSky <git@bunnies.cc>2014-01-07 03:16:47 +0000
committerSky <git@bunnies.cc>2014-01-07 03:16:47 +0000
commit5fe0ed7e8fad7654f9fe61669e596fe74bac8740 (patch)
treeda856ba43a437caf546d8a2b9e03c15ce5430b93 /logic/lists
parent012b007e56c8121e5dc6434765f16647edd23585 (diff)
downloadMultiMC-5fe0ed7e8fad7654f9fe61669e596fe74bac8740.tar
MultiMC-5fe0ed7e8fad7654f9fe61669e596fe74bac8740.tar.gz
MultiMC-5fe0ed7e8fad7654f9fe61669e596fe74bac8740.tar.lz
MultiMC-5fe0ed7e8fad7654f9fe61669e596fe74bac8740.tar.xz
MultiMC-5fe0ed7e8fad7654f9fe61669e596fe74bac8740.zip
Return a properly sorted list of checked javas
Diffstat (limited to 'logic/lists')
-rw-r--r--logic/lists/JavaVersionList.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/logic/lists/JavaVersionList.cpp b/logic/lists/JavaVersionList.cpp
index e8c5acd0..eb1c5650 100644
--- a/logic/lists/JavaVersionList.cpp
+++ b/logic/lists/JavaVersionList.cpp
@@ -182,13 +182,17 @@ void JavaListLoadTask::executeTask()
connect(m_job.get(), SIGNAL(progress(int, int)), this, SLOT(checkerProgress(int, int)));
QLOG_DEBUG() << "Probing the following Java paths: ";
+ int id = 0;
for(QString candidate : candidate_paths)
{
QLOG_DEBUG() << " " << candidate;
auto candidate_checker = new JavaChecker();
candidate_checker->path = candidate;
+ candidate_checker->id = id;
m_job->addJavaCheckerAction(JavaCheckerPtr(candidate_checker));
+
+ id++;
}
m_job->start();