mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-21 04:16:12 +00:00
Switch to Disassembly when there is no fcn, Fix #111
This commit is contained in:
parent
2f91f5b07c
commit
211bf464a3
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user