From fc829b2303f3e66fc38e6968158d06f009ac34a0 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Mon, 26 Mar 2012 13:52:22 +0200
Subject: [PATCH] debugger: fix recent breakage in stack view context menu

Change-Id: Ida267bcd5f5b5931612373e5dbd80fe9eb4dbdb3
Reviewed-by: hjk <qthjk@ovi.com>
---
 src/plugins/debugger/stackwindow.cpp | 4 +---
 1 file changed, 1 insertion(+), 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())
-- 
GitLab