From 0fc225d3cadd677d7d51f0b59f0a5764804918ea Mon Sep 17 00:00:00 2001 From: Zhang TingAn Date: Wed, 20 Nov 2024 14:40:59 +0800 Subject: [PATCH] fix: [project] When opening the project, the build kit is incorrect. Log: as title --- src/plugins/project/projectcore.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/plugins/project/projectcore.cpp b/src/plugins/project/projectcore.cpp index f8dba3d69..65084a727 100644 --- a/src/plugins/project/projectcore.cpp +++ b/src/plugins/project/projectcore.cpp @@ -330,6 +330,8 @@ void ProjectCore::confirmProjectKit(const QString &path) // check defualt kit by supportNames bool hasDefault = false; for (auto kit : allKits) { + if (hasDefault) + break; auto generator = projectService->createGenerator(kit); QStringList fileNames = generator->supportFileNames(); if (fileNames.isEmpty())