Use afi. for function checking

This commit is contained in:
Florian Märkl 2017-11-28 12:03:36 +01:00
parent 211bf464a3
commit d608c8d067

View File

@ -192,7 +192,7 @@ QString CutterCore::cmd(const QString &str)
emit seekChanged(core_->offset); emit seekChanged(core_->offset);
// switch from graph to disassembly if there is no function // 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; memoryWidgetPriority = MemoryWidgetType::Disassembly;
} }