diff options
author | hjk <qtc-committer@nokia.com> | 2011-07-11 14:56:57 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@nokia.com> | 2011-07-11 15:03:01 +0200 |
commit | 5f65d79605ee6dfdc65ddfdc0b4a73b4c398cdec (patch) | |
tree | 1046f036a7451be4cb4fe51c1c8b87d85e8f474b /src/plugins/valgrind/memchecktool.cpp | |
parent | bd92b51296a2925844da25371e51180f3ea3c7d4 (diff) | |
download | qt-creator-5f65d79605ee6dfdc65ddfdc0b4a73b4c398cdec.tar.gz |
analyzer: don't crash on "Goto Next Leak" if there is none.
Change-Id: I7829c7c93338fd4238b9148a9fed3be4f5f69687
Reviewed-by: con
Task-number: QTCREATORBUG-5386
Reviewed-on: http://codereview.qt.nokia.com/1427
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
Diffstat (limited to 'src/plugins/valgrind/memchecktool.cpp')
-rw-r--r-- | src/plugins/valgrind/memchecktool.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/valgrind/memchecktool.cpp b/src/plugins/valgrind/memchecktool.cpp index 9c2e89a817..db2991acae 100644 --- a/src/plugins/valgrind/memchecktool.cpp +++ b/src/plugins/valgrind/memchecktool.cpp @@ -544,8 +544,8 @@ void MemcheckTool::updateErrorFilter() void MemcheckTool::finished() { const int n = m_errorModel->rowCount(); - m_goBack->setEnabled(n > 0); - m_goNext->setEnabled(n > 0); + m_goBack->setEnabled(n > 1); + m_goNext->setEnabled(n > 1); const QString msg = AnalyzerManager::msgToolFinished(displayName(), n); AnalyzerManager::showStatusMessage(msg); } |