diff --git a/src/plugins/debugger/breakwindow.cpp b/src/plugins/debugger/breakwindow.cpp
index 630f99c718a9b6e184b9733bcd29a497fd848779..ff5c1a13992a24b80d13f6245f547e373441e112 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;