diff --git a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp index a75bb6ee3b7..3a01d9e0454 100644 --- a/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp +++ b/src/plugins/projectexplorer/jsonwizard/jsonwizardfactory.cpp @@ -318,7 +318,7 @@ static QStringList environmentTemplatesPaths() { QStringList paths; - QString envTempPath = qEnvironmentVariable("QTCREATOR_TEMPLATES_PATH"); + QString envTempPath = QString::fromLocal8Bit(qgetenv("QTCREATOR_TEMPLATES_PATH")); if (!envTempPath.isEmpty()) { for (const QString &path : envTempPath