Fixed switching between views in same offset (#483)

This commit is contained in:
fcasal 2018-05-08 19:09:05 +01:00 committed by xarkes
parent 73d395c2be
commit 8ab3a3664c

View File

@ -166,9 +166,8 @@ QString CutterCore::cmd(const QString &str)
if (this->cmd("afi.").trimmed().isEmpty() && memoryWidgetPriority == MemoryWidgetType::Graph) { if (this->cmd("afi.").trimmed().isEmpty() && memoryWidgetPriority == MemoryWidgetType::Graph) {
memoryWidgetPriority = MemoryWidgetType::Disassembly; memoryWidgetPriority = MemoryWidgetType::Disassembly;
} }
triggerRaisePrioritizedMemoryWidget();
} }
triggerRaisePrioritizedMemoryWidget();
return o; return o;
} }
@ -215,6 +214,7 @@ bool CutterCore::loadFile(QString path, ut64 baddr, ut64 mapaddr, int perms, int
f = r_core_file_open(core_, path.toUtf8().constData(), perms, mapaddr); f = r_core_file_open(core_, path.toUtf8().constData(), perms, mapaddr);
if (!f) { if (!f) {
// @TODO pop warning msg
eprintf("r_core_file_open failed\n"); eprintf("r_core_file_open failed\n");
return false; return false;
} }