diff --git a/src/cutter.cpp b/src/cutter.cpp index 4010c8d0..34f85a32 100644 --- a/src/cutter.cpp +++ b/src/cutter.cpp @@ -190,6 +190,13 @@ QString CutterCore::cmd(const QString &str) if (offset != core_->offset) { emit seekChanged(core_->offset); + + // switch from graph to disassembly if there is no function + if (cmdj("afij").array().isEmpty() && memoryWidgetPriority == MemoryWidgetType::Graph) + { + memoryWidgetPriority = MemoryWidgetType::Disassembly; + } + triggerRaisePrioritizedMemoryWidget(); } return o;