Skip to content
Snippets Groups Projects
Commit fc829b23 authored by hjk's avatar hjk Committed by hjk
Browse files

debugger: fix recent breakage in stack view context menu


Change-Id: Ida267bcd5f5b5931612373e5dbd80fe9eb4dbdb3
Reviewed-by: default avatarhjk <qthjk@ovi.com>
parent 1cf369f7
No related branches found
No related tags found
No related merge requests found
......@@ -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())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment