forked from qt-creator/qt-creator
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:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user