mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 12:26:11 +00:00
Use afi. for function checking
This commit is contained in:
parent
211bf464a3
commit
d608c8d067
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user