Skip to content

Commit

Permalink
fix: [project] When opening the project, the build kit is incorrect.
Browse files Browse the repository at this point in the history
Log: as title
  • Loading branch information
LiHua000 authored and deepin-mozart committed Nov 21, 2024
1 parent 8874bfb commit 0fc225d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/plugins/project/projectcore.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<ProjectGenerator>(kit);
QStringList fileNames = generator->supportFileNames();
if (fileNames.isEmpty())
Expand Down

0 comments on commit 0fc225d

Please sign in to comment.