From 31e98bf448211689f1ba3b5abe07c254f27c7724 Mon Sep 17 00:00:00 2001
From: dt <qtc-committer@nokia.com>
Date: Tue, 14 Sep 2010 17:15:01 +0200
Subject: [PATCH] Debugger: Fix en/disabling of "Delete All Breakpoints"

Reviewed-By: hjk
---
 src/plugins/debugger/breakwindow.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp
index 630f99c718a..ff5c1a13992 100644
--- a/src/plugins/debugger/breakwindow.cpp
+++ b/src/plugins/debugger/breakwindow.cpp
@@ -164,7 +164,7 @@ void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
     deleteAction->setEnabled(si.size() > 0);
 
     QAction *deleteAllAction = new QAction(tr("Delete All Breakpoints"), &menu);
-    deleteAllAction->setEnabled(si.size() > 0);
+    deleteAllAction->setEnabled(model()->rowCount() > 0);
 
     // Delete by file: Find indices of breakpoints of the same file.
     QAction *deleteByFileAction = 0;
-- 
GitLab