ProjectExplorer: Do not pop up the issues pane while not building

Otherwise, the issues pane can pop up due to a key press, as code models
refresh their diagnostic entries.
Amends 04a23c38f0.

Fixes: QTCREATORBUG-28330
Change-Id: Ic7e63a1bbbf3e4c37383849cfad05529bac23e9b
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
Christian Kandeler
2022-11-07 14:23:06 +01:00
parent 45317da25a
commit c89bef9dcd

View File

@@ -486,7 +486,7 @@ void BuildManager::updateTaskCount()
{
const int errors = getErrorTaskCount();
ProgressManager::setApplicationLabel(errors > 0 ? QString::number(errors) : QString());
if (errors > 0 && !d->m_poppedUpTaskWindow) {
if (isBuilding() && errors > 0 && !d->m_poppedUpTaskWindow) {
showTaskWindow();
d->m_poppedUpTaskWindow = true;
}