aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/debugger/stackwindow.cpp
diff options
context:
space:
mode:
authorhjk <[email protected]>2012-03-26 13:52:22 +0200
committerhjk <[email protected]>2012-03-26 13:53:30 +0200
commitfc829b2303f3e66fc38e6968158d06f009ac34a0 (patch)
tree1ad403d57cc917ef37d3fcd1ca90587f0ed5dc79 /src/plugins/debugger/stackwindow.cpp
parent1cf369f71cf3f36e1ca3889d087cb36b590ddcbc (diff)
debugger: fix recent breakage in stack view context menu
Diffstat (limited to 'src/plugins/debugger/stackwindow.cpp')
-rw-r--r--src/plugins/debugger/stackwindow.cpp4
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())