Commit e28e1f0c authored by Kai Koehne's avatar Kai Koehne
Browse files

Fix QtQuick->Preview shortcut to start a qmlviewer

The executable has been renamed to 'qmlviewer' months ago
parent bbee4a63
......@@ -18,7 +18,7 @@ QmlJSPreviewRunner::QmlJSPreviewRunner(QObject *parent) :
const QString searchPath = QCoreApplication::applicationDirPath()
+ Utils::SynchronousProcess::pathSeparator()
+ QString(qgetenv("PATH"));
m_qmlViewerDefaultPath = Utils::SynchronousProcess::locateBinary(searchPath, QLatin1String("qml"));
m_qmlViewerDefaultPath = Utils::SynchronousProcess::locateBinary(searchPath, QLatin1String("qmlviewer"));
ProjectExplorer::Environment environment = ProjectExplorer::Environment::systemEnvironment();
m_applicationLauncher.setEnvironment(environment.toStringList());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment