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,7 +505,12 @@ void MemoryWidget::refreshDisasm(const QString &offset)
QString ele = elements[0];
if (ele.contains("0x"))
{
this->main->core->cmd("s " + ele);
QString fcn = this->main->core->cmdFunctionAt(ele);
if (fcn != "") {
this->main->core->cmd("s " + fcn);
} else {
this->main->core->cmd("s " + ele);
}
}
}
}