Merge pull request #360 from FayneAldan/patch-2

This commit is contained in:
dada513 2022-03-29 14:34:14 +02:00 committed by GitHub
commit b53ba12fa2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -153,7 +153,7 @@ QStringList addJavasFromEnv(QList<QString> javas)
{ {
QByteArray env = qgetenv("POLYMC_JAVA_PATHS"); QByteArray env = qgetenv("POLYMC_JAVA_PATHS");
#if defined(Q_OS_WIN32) #if defined(Q_OS_WIN32)
QList<QString> javaPaths = QString::fromLocal8Bit(env).split(QLatin1String(";")); QList<QString> javaPaths = QString::fromLocal8Bit(env).replace("\\", "/").split(QLatin1String(";"));
#else #else
QList<QString> javaPaths = QString::fromLocal8Bit(env).split(QLatin1String(":")); QList<QString> javaPaths = QString::fromLocal8Bit(env).split(QLatin1String(":"));
#endif #endif