diff options
author | Sky <git@bunnies.cc> | 2013-12-12 15:04:24 +0000 |
---|---|---|
committer | Sky <git@bunnies.cc> | 2013-12-12 15:04:24 +0000 |
commit | b963ff7416ef78308792b9693de0b47c0888054a (patch) | |
tree | d3d763647e4e54103f25d21b458a9fb665714855 /logic/JavaUtils.cpp | |
parent | a2b094102999af646dd1dd962ced435197466b97 (diff) | |
download | MultiMC-b963ff7416ef78308792b9693de0b47c0888054a.tar MultiMC-b963ff7416ef78308792b9693de0b47c0888054a.tar.gz MultiMC-b963ff7416ef78308792b9693de0b47c0888054a.tar.lz MultiMC-b963ff7416ef78308792b9693de0b47c0888054a.tar.xz MultiMC-b963ff7416ef78308792b9693de0b47c0888054a.zip |
Don't break Linux and OS X builds :(
Diffstat (limited to 'logic/JavaUtils.cpp')
-rw-r--r-- | logic/JavaUtils.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/logic/JavaUtils.cpp b/logic/JavaUtils.cpp index 91463688..278046e9 100644 --- a/logic/JavaUtils.cpp +++ b/logic/JavaUtils.cpp @@ -177,33 +177,33 @@ QList<QString> JavaUtils::FindJavaPaths() } #elif OSX -QList<JavaVersionPtr> JavaUtils::FindJavaPaths() +QList<QString> JavaUtils::FindJavaPaths() { QLOG_INFO() << "OS X Java detection incomplete - defaulting to \"java\""; - QList<JavaVersionPtr> javas; - javas.append(this->GetDefaultJava()); + QList<QString> javas; + javas.append(this->GetDefaultJava()->path); return javas; } #elif LINUX -QList<JavaVersionPtr> JavaUtils::FindJavaPaths() +QList<QString> JavaUtils::FindJavaPaths() { QLOG_INFO() << "Linux Java detection incomplete - defaulting to \"java\""; - QList<JavaVersionPtr> javas; - javas.append(this->GetDefaultJava()); + QList<QString> javas; + javas.append(this->GetDefaultJava()->path); return javas; } #else -QList<JavaVersionPtr> JavaUtils::FindJavaPaths() +QList<QString> JavaUtils::FindJavaPaths() { QLOG_INFO() << "Unknown operating system build - defaulting to \"java\""; - QList<JavaVersionPtr> javas; - javas.append(this->GetDefaultJava()); + QList<QString> javas; + javas.append(this->GetDefaultJava()->path); return javas; } |