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; }