From d608c8d06712e274b212e474b18341ca74e0eea5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Tue, 28 Nov 2017 12:03:36 +0100 Subject: [PATCH] Use afi. for function checking --- src/cutter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cutter.cpp b/src/cutter.cpp index 34f85a32..51df8817 100644 --- a/src/cutter.cpp +++ b/src/cutter.cpp @@ -192,7 +192,7 @@ QString CutterCore::cmd(const QString &str) emit seekChanged(core_->offset); // switch from graph to disassembly if there is no function - if (cmdj("afij").array().isEmpty() && memoryWidgetPriority == MemoryWidgetType::Graph) + if (this->cmd("afi.").trimmed().isEmpty() && memoryWidgetPriority == MemoryWidgetType::Graph) { memoryWidgetPriority = MemoryWidgetType::Disassembly; }