Debugger: Comment out quasi dead code

Change-Id: I8d7773d911646b05d6343241ae09882b40e861b2
Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
Robert Loehning
2017-03-13 18:09:51 +01:00
parent 25087b0153
commit bd9824a45c

View File

@@ -1969,15 +1969,15 @@ bool BreakHandler::contextMenuEvent(const ItemViewEvent &ev)
// FIXME BP: m_engine->threadsHandler()->currentThreadId();
int threadId = 0;
addAction(menu,
threadId == -1 ? tr("Associate Breakpoint with All Threads")
: tr("Associate Breakpoint with Thread %1").arg(threadId),
!selectedItems.isEmpty(),
[this, selectedItems, threadId] {
for (Breakpoint bp : selectedItems)
bp.setThreadSpec(threadId);
});
// int threadId = 0;
// addAction(menu,
// threadId == -1 ? tr("Associate Breakpoint with All Threads")
// : tr("Associate Breakpoint with Thread %1").arg(threadId),
// !selectedItems.isEmpty(),
// [this, selectedItems, threadId] {
// for (Breakpoint bp : selectedItems)
// bp.setThreadSpec(threadId);
// });
addAction(menu,
selectedItems.size() > 1