From cce0bf2a657334b654568fef31c5d09774210fbb Mon Sep 17 00:00:00 2001 From: Thomas Hartmann Date: Thu, 5 Sep 2024 16:13:03 +0200 Subject: [PATCH] QmlDesigner: Do not open another QML file in fake project mode If a fake project is is opened the user has already opened the "correct" .ui.qml file. We do not have to open another one. Change-Id: Ib7e838118a9162cdc7b7aba05c51a9271503a103 Reviewed-by: Burak Hancerli Reviewed-by: Thomas Hartmann --- src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp b/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp index 0813e1dd03d..5a64c8b7de0 100644 --- a/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp +++ b/src/plugins/qmlprojectmanager/buildsystem/qmlbuildsystem.cpp @@ -380,6 +380,9 @@ Utils::FilePath QmlBuildSystem::getStartupQmlFileWithFallback() const if (!target()) return {}; + if (projectFilePath().endsWith(Constants::fakeProjectName)) + return {}; + const auto getFirstFittingFile = [](const Utils::FilePaths &files) -> Utils::FilePath { for (const auto &file : files) { if (file.exists())