Commit 239e7739 authored by hjk's avatar hjk Committed by hjk

debgugger: fix crash when opening memory editor through register values

Task-number: QTCREATORBUG-6430
Change-Id: I92edba9e4564bbdff6babc548d49e9ba36bc3b77
Reviewed-by: default avatarFriedemann Kleint <Friedemann.Kleint@nokia.com>
parent 755f5fc3
......@@ -244,7 +244,7 @@ void RegisterWindow::contextMenuEvent(QContextMenuEvent *ev)
if (act == actReload)
engine->reloadRegisters();
else if (act == actEditMemory) {
const QString registerName = QString::fromAscii(aRegister.name, address);
const QString registerName = QString::fromAscii(aRegister.name);
engine->openMemoryView(address, 0,
RegisterMemoryView::registerMarkup(address, registerName),
QPoint(), RegisterMemoryView::title(registerName), 0);
......
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