From 00f3c1baee50c64028466e167bf0a69817e4f35e Mon Sep 17 00:00:00 2001 From: Hugo Teso Date: Wed, 12 Apr 2017 16:26:57 +0200 Subject: [PATCH] Fixed disasm context menu actions --- src/widgets/memorywidget.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/widgets/memorywidget.cpp b/src/widgets/memorywidget.cpp index 1af3f946..15b29138 100644 --- a/src/widgets/memorywidget.cpp +++ b/src/widgets/memorywidget.cpp @@ -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); + } } } }