Skip to content

Commit

Permalink
fix: [cxx] project tree repeat when multi-configure
Browse files Browse the repository at this point in the history
Log:
Change-Id: Ic940d84c1ddacd3c2ff9ca416c8b385066b34b87
  • Loading branch information
deepin-mozart committed Apr 3, 2024
1 parent d240131 commit d8467d1
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/plugins/cxx/cmake/project/cmakeprojectgenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,11 @@ CmakeProjectGenerator::CmakeProjectGenerator()
QObject::connect(runCMake, &QAction::triggered, this,[this](){
this->runCMake(this->rootItem, {});
});

QObject::connect(config::ConfigUtil::instance(), &config::ConfigUtil::configureDone,
[this](const dpfservice::ProjectInfo &info) {
configure(info);
});
}

CmakeProjectGenerator::~CmakeProjectGenerator()
Expand Down Expand Up @@ -128,10 +133,6 @@ QDialog *CmakeProjectGenerator::configureWidget(const QString &language,

// show build type config pane.
ConfigPropertyWidget *configPropertyWidget = new ConfigPropertyWidget(language, workspace);
QObject::connect(config::ConfigUtil::instance(), &config::ConfigUtil::configureDone,
[this](const dpfservice::ProjectInfo &info) {
configure(info);
});

return configPropertyWidget;
}
Expand Down

0 comments on commit d8467d1

Please sign in to comment.