From 362956a7104a5a4afa72d42985f607ae5e605e1e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20Jen=C3=9Fen?= Date: Tue, 25 Mar 2025 08:52:33 +0100 Subject: [PATCH] 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 Reviewed-by: Tim Jenssen --- src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp index db3fe3d0a7b..8f3120120fa 100644 --- a/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp +++ b/src/plugins/qmlprojectmanager/qmlprojectrunconfiguration.cpp @@ -216,7 +216,7 @@ FilePath QmlProjectRunConfiguration::qmlRuntimeFilePath() const if (QtVersion *version = QtKitAspect::qtVersion(kit)) { // look for QML Puppet as qmlruntime only in QtStudio Qt versions if (version->features().contains("QtStudio") && version->qtVersion().majorVersion() > 5 - && dev->rootPath().isLocal()) { + && !dev->rootPath().needsDevice()) { auto [workingDirectoryPath, puppetPath] = QmlDesigner::QmlPuppetPaths::qmlPuppetPaths( target(), QmlDesigner::QmlDesignerBasePlugin::settings()); if (!puppetPath.isEmpty()) {