aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/buildprogress.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2011-06-07 17:53:46 +0200
committerTobias Hunger <tobias.hunger@nokia.com>2011-06-10 10:43:48 +0200
commitf82c4ea3c6321c2fa7c939a3ddf917cb3061b9e7 (patch)
treee292d5f371e590b716fedfc7cec4fbd1b1b92887 /src/plugins/projectexplorer/buildprogress.cpp
parent9f9d7bb12b06abaa9cc095089204055d1d70b105 (diff)
Tasks: Only report warning tasks in build progress
Task-number: QTCREATORBUG-5020 Change-Id: Iead3d76509dd7b6d6c04d0ef64b7b3d2cad316d0 Reviewed-on: http://codereview.qt.nokia.com/369 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/buildprogress.cpp')
-rw-r--r--src/plugins/projectexplorer/buildprogress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/buildprogress.cpp b/src/plugins/projectexplorer/buildprogress.cpp
index ee4534544f..651d6e3e97 100644
--- a/src/plugins/projectexplorer/buildprogress.cpp
+++ b/src/plugins/projectexplorer/buildprogress.cpp
@@ -93,7 +93,7 @@ void BuildProgress::updateState()
m_errorIcon->setEnabled(haveErrors);
m_errorLabel->setEnabled(haveErrors);
m_errorLabel->setText(QString("%1").arg(errors));
- int warnings = m_taskWindow->taskCount()-errors;
+ int warnings = m_taskWindow->warningTaskCount();
bool haveWarnings = (warnings > 0);
m_warningIcon->setEnabled(haveWarnings);
m_warningLabel->setEnabled(haveWarnings);