Debugger: Fix context menu item text

As it is possible to delete more than one selected breakpoint it
should be indicated in the menu.

Change-Id: Iabf6d4313e65bb65d7e822b05f448f459a7ae3a5
Reviewed-by: hjk <hjk@theqtcompany.com>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@theqtcompany.com>
This commit is contained in:
Christian Stenger
2015-01-27 13:56:08 +01:00
committed by hjk
parent f064dd1b27
commit 512055d36d

View File

@@ -743,7 +743,7 @@ void BreakTreeView::contextMenuEvent(QContextMenuEvent *ev)
Breakpoints selectedItems = handler->findBreakpointsByIndex(selectedIndices); Breakpoints selectedItems = handler->findBreakpointsByIndex(selectedIndices);
const int rowCount = model()->rowCount(); const int rowCount = model()->rowCount();
auto deleteAction = new QAction(tr("Delete Breakpoint"), &menu); auto deleteAction = new QAction(tr("Delete Selected Breakpoints"), &menu);
deleteAction->setEnabled(!selectedItems.empty()); deleteAction->setEnabled(!selectedItems.empty());
auto deleteAllAction = new QAction(tr("Delete All Breakpoints"), &menu); auto deleteAllAction = new QAction(tr("Delete All Breakpoints"), &menu);