forked from qt-creator/qt-creator
QmlProjectManager: fix missing FilePath::isLocal()
- Qt Creator 16 provides isLocal() for checking local file paths. - Qt Creator 15 uses needsDevice(), which is the exact negation of isLocal(). - qds/4.7 is still based on QtCreator 15 Change-Id: I2abd7c53c94571dfc16d6cee86acfce9669bb8b4 Reviewed-by: Andrii Semkiv <andrii.semkiv@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
This commit is contained in:
@@ -216,7 +216,7 @@ FilePath QmlProjectRunConfiguration::qmlRuntimeFilePath() const
|
|||||||
if (QtVersion *version = QtKitAspect::qtVersion(kit)) {
|
if (QtVersion *version = QtKitAspect::qtVersion(kit)) {
|
||||||
// look for QML Puppet as qmlruntime only in QtStudio Qt versions
|
// look for QML Puppet as qmlruntime only in QtStudio Qt versions
|
||||||
if (version->features().contains("QtStudio") && version->qtVersion().majorVersion() > 5
|
if (version->features().contains("QtStudio") && version->qtVersion().majorVersion() > 5
|
||||||
&& dev->rootPath().isLocal()) {
|
&& !dev->rootPath().needsDevice()) {
|
||||||
auto [workingDirectoryPath, puppetPath] = QmlDesigner::QmlPuppetPaths::qmlPuppetPaths(
|
auto [workingDirectoryPath, puppetPath] = QmlDesigner::QmlPuppetPaths::qmlPuppetPaths(
|
||||||
target(), QmlDesigner::QmlDesignerBasePlugin::settings());
|
target(), QmlDesigner::QmlDesignerBasePlugin::settings());
|
||||||
if (!puppetPath.isEmpty()) {
|
if (!puppetPath.isEmpty()) {
|
||||||
|
Reference in New Issue
Block a user