QbsProjectManager: Disable build and clean actions during parsing

The qbs-specific actions such as "build file", "build product" and
"clean product" were not properly updated on parse status changes, so
they would stay enabled during a parse, leading to user confusion about
why nothing happened when clicking them.

Fixes: QTCREATORBUG-24129
Change-Id: Ia19052e287f0ce1d965332e8ccd9efb46c8d005e
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
Christian Kandeler
2020-08-05 15:01:11 +02:00
parent b7738aaf29
commit 660b267193

View File

@@ -254,6 +254,13 @@ bool QbsProjectManagerPlugin::initialize(const QStringList &arguments, QString *
this, &QbsProjectManagerPlugin::updateBuildActions);
connect(SessionManager::instance(), &SessionManager::startupProjectChanged,
this, &QbsProjectManagerPlugin::updateReparseQbsAction);
connect(SessionManager::instance(), &SessionManager::projectAdded,
this, [this](Project *project) {
connect(project, &Project::anyParsingStarted,
this, &QbsProjectManagerPlugin::projectChanged);
connect(project, &Project::anyParsingFinished,
this, &QbsProjectManagerPlugin::projectChanged);
});
// Run initial setup routines
updateContextActions();