Commit be0dfb8c authored by hjk's avatar hjk
Browse files

debugger: slightly better wording of action names when disabling multiple

breakpoints
parent ea808410
......@@ -196,7 +196,14 @@ void BreakWindow::contextMenuEvent(QContextMenuEvent *ev)
QModelIndex idx0 = (si.size() ? si.front() : QModelIndex());
QModelIndex idx2 = idx0.sibling(idx0.row(), 2);
bool enabled = si.isEmpty() || itemModel->data(idx0, Qt::UserRole).toBool();
const QString str5 = enabled ? tr("Disable Breakpoint") : tr("Enable Breakpoint");
const QString str5 = si.size() > 1
? enabled
? tr("Disable Selected Breakpoints")
: tr("Enable Selected Breakpoints")
: enabled
? tr("Disable Breakpoint")
: tr("Enable Breakpoint");
QAction *toggleEnabledAction = new QAction(str5, &menu);
toggleEnabledAction->setEnabled(si.size() > 0);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment