diff --git a/launcher/java/JavaUtils.cpp b/launcher/java/JavaUtils.cpp index 81b3a0b2c..6c0c60cd3 100644 --- a/launcher/java/JavaUtils.cpp +++ b/launcher/java/JavaUtils.cpp @@ -379,9 +379,9 @@ QList JavaUtils::FindJavaPaths() } } - javas = addJavasFromEnv(javas); - javas.removeDuplicates(); - return javas; + candidates = addJavasFromEnv(candidates); + candidates.removeDuplicates(); + return candidates; } #elif defined(Q_OS_MAC)