forked from qt-creator/qt-creator
Make sure that the qmlviewer from the binary package is always used
The custom creator-qml installer comes with a qmlviewer installed in creator/bin. Make sure that this qmlviewer is used to run .qmlproject files, even though there might be other qmlviewer binaries in the PATH.
This commit is contained in:
@@ -308,11 +308,11 @@ QmlRunConfiguration::QmlRunConfiguration(QmlProject *pro)
|
||||
{
|
||||
setDisplayName(tr("QML Viewer"));
|
||||
|
||||
// append creator/bin dir to search path (only useful for special creator-qml package)
|
||||
const QString searchPath = QString(qgetenv("PATH"))
|
||||
// prepend creator/bin dir to search path (only useful for special creator-qml package)
|
||||
const QString searchPath = QCoreApplication::applicationDirPath()
|
||||
+ Utils::SynchronousProcess::pathSeparator()
|
||||
+ QCoreApplication::applicationDirPath()
|
||||
;
|
||||
+ QString(qgetenv("PATH"));
|
||||
|
||||
m_qmlViewerDefaultPath = Utils::SynchronousProcess::locateBinary(searchPath, QLatin1String("qmlviewer"));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user