Fixed disasm context menu actions

This commit is contained in:
Hugo Teso 2017-04-12 16:26:57 +02:00
parent 7e7c6aad85
commit 00f3c1baee

View File

@ -505,10 +505,15 @@ void MemoryWidget::refreshDisasm(const QString &offset)
QString ele = elements[0]; QString ele = elements[0];
if (ele.contains("0x")) if (ele.contains("0x"))
{ {
QString fcn = this->main->core->cmdFunctionAt(ele);
if (fcn != "") {
this->main->core->cmd("s " + fcn);
} else {
this->main->core->cmd("s " + ele); this->main->core->cmd("s " + ele);
} }
} }
} }
}
QString txt2 = this->main->core->cmd("pd 100"); QString txt2 = this->main->core->cmd("pd 100");
this->disasTextEdit->setPlainText(txt2.trimmed()); this->disasTextEdit->setPlainText(txt2.trimmed());