Debugger: Pre-set memory address dialog in locals view.

This commit is contained in:
Friedemann Kleint
2011-05-04 15:08:43 +02:00
parent ac18e2016c
commit 2e1954ae47

View File

@@ -857,6 +857,8 @@ void WatchWindow::contextMenuEvent(QContextMenuEvent *ev)
addVariableMemoryView(currentEngine(), false, mi0, true, ev->globalPos(), this); addVariableMemoryView(currentEngine(), false, mi0, true, ev->globalPos(), this);
} else if (act == actOpenMemoryEditor) { } else if (act == actOpenMemoryEditor) {
AddressDialog dialog; AddressDialog dialog;
if (address)
dialog.setAddress(address);
if (dialog.exec() == QDialog::Accepted) if (dialog.exec() == QDialog::Accepted)
currentEngine()->openMemoryView(dialog.address(), false, MemoryMarkupList(), QPoint()); currentEngine()->openMemoryView(dialog.address(), false, MemoryMarkupList(), QPoint());
} else if (act == actOpenMemoryViewAtVariableAddress) { } else if (act == actOpenMemoryViewAtVariableAddress) {