Switch to Disassembly when there is no fcn, Fix #111

This commit is contained in:
Florian Märkl 2017-11-28 11:34:47 +01:00
parent 2f91f5b07c
commit 211bf464a3

View File

@ -190,6 +190,13 @@ QString CutterCore::cmd(const QString &str)
if (offset != core_->offset) if (offset != core_->offset)
{ {
emit seekChanged(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(); triggerRaisePrioritizedMemoryWidget();
} }
return o; return o;