Commit 0f0f53a6 authored by Friedemann Kleint's avatar Friedemann Kleint
Browse files

Debugger: Fix stack context menu.

Initial-patch-by: hjk
parent f7a077b1
......@@ -102,7 +102,7 @@ void StackWindow::contextMenuEvent(QContextMenuEvent *ev)
const int row = index.row();
const unsigned engineCapabilities = engine->debuggerCapabilities();
StackFrame frame;
if (row < handler->stackSize())
if (row >= 0 && row < handler->stackSize())
frame = handler->frameAt(row);
const quint64 address = frame.address;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment