Debugger: Fix stack context menu.

Initial-patch-by: hjk
This commit is contained in:
Friedemann Kleint
2010-11-15 11:20:39 +01:00
parent f7a077b1fa
commit 0f0f53a6c4

View File

@@ -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;