diff options
author | Tobias Hunger <tobias.hunger@nokia.com> | 2012-06-06 16:17:47 +0200 |
---|---|---|
committer | Tobias Hunger <tobias.hunger@nokia.com> | 2012-06-07 10:30:01 +0200 |
commit | 80b40164f678f2542838bd47769966c7542f37ef (patch) | |
tree | 8fc290e0157363d27caef608226fa09e5a95eadf /src/plugins/projectexplorer/buildprogress.cpp | |
parent | bf9b3e589caf62f9cfe12d97fba8962e1867bf17 (diff) |
Fix warnings count
Only count build system/compile warnings
Change-Id: Id1a09fdef5d08aafec0a366584132a9c11d10b10
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
Diffstat (limited to 'src/plugins/projectexplorer/buildprogress.cpp')
-rw-r--r-- | src/plugins/projectexplorer/buildprogress.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/buildprogress.cpp b/src/plugins/projectexplorer/buildprogress.cpp index 7ae8818a38..0d9d4bd776 100644 --- a/src/plugins/projectexplorer/buildprogress.cpp +++ b/src/plugins/projectexplorer/buildprogress.cpp @@ -95,7 +95,8 @@ void BuildProgress::updateState() m_errorIcon->setEnabled(haveErrors); m_errorLabel->setEnabled(haveErrors); m_errorLabel->setText(QString::number(errors)); - int warnings = m_taskWindow->warningTaskCount(); + int warnings = m_taskWindow->warningTaskCount(Core::Id(Constants::TASK_CATEGORY_BUILDSYSTEM)) + + m_taskWindow->warningTaskCount(Core::Id(Constants::TASK_CATEGORY_COMPILE)); bool haveWarnings = (warnings > 0); m_warningIcon->setEnabled(haveWarnings); m_warningLabel->setEnabled(haveWarnings); |