diff options
author | hjk <[email protected]> | 2012-03-26 13:52:22 +0200 |
---|---|---|
committer | hjk <[email protected]> | 2012-03-26 13:53:30 +0200 |
commit | fc829b2303f3e66fc38e6968158d06f009ac34a0 (patch) | |
tree | 1ad403d57cc917ef37d3fcd1ca90587f0ed5dc79 /src/plugins/debugger/stackwindow.cpp | |
parent | 1cf369f71cf3f36e1ca3889d087cb36b590ddcbc (diff) |
debugger: fix recent breakage in stack view context menu
Change-Id: Ida267bcd5f5b5931612373e5dbd80fe9eb4dbdb3
Reviewed-by: hjk <[email protected]>
Diffstat (limited to 'src/plugins/debugger/stackwindow.cpp')
-rw-r--r-- | src/plugins/debugger/stackwindow.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/debugger/stackwindow.cpp b/src/plugins/debugger/stackwindow.cpp index 0dd0bc0cd53..dcb85cc02b5 100644 --- a/src/plugins/debugger/stackwindow.cpp +++ b/src/plugins/debugger/stackwindow.cpp @@ -121,11 +121,9 @@ static inline StackFrame inputFunctionForDisassembly() void StackWindow::contextMenuEvent(QContextMenuEvent *ev) { - QModelIndexList si = selectedIndices(ev); - QTC_ASSERT(si.size() == 1, return); DebuggerEngine *engine = currentEngine(); StackHandler *handler = engine->stackHandler(); - const QModelIndex index = si.at(0); + const QModelIndex index = indexAt(ev->pos()); const int row = index.row(); StackFrame frame; if (row >= 0 && row < handler->stackSize()) |