Avoid calling triggerRaisePrioritizedMemoryWidget() on every command

This commit is contained in:
Florian Märkl 2018-05-24 15:42:27 +02:00
parent 1ee7061c72
commit cd776c24ef

View File

@ -167,7 +167,6 @@ QString CutterCore::cmd(const QString &str)
memoryWidgetPriority = MemoryWidgetType::Disassembly; memoryWidgetPriority = MemoryWidgetType::Disassembly;
} }
} }
triggerRaisePrioritizedMemoryWidget();
return o; return o;
} }
@ -375,21 +374,25 @@ void CutterCore::seek(ut64 offset)
} }
cmd(QString("s %1").arg(offset)); cmd(QString("s %1").arg(offset));
// cmd already does emit seekChanged(core_->offset); // cmd already does emit seekChanged(core_->offset);
triggerRaisePrioritizedMemoryWidget();
} }
void CutterCore::seek(QString thing) void CutterCore::seek(QString thing)
{ {
cmdRaw(QString("s %1").arg(thing)); cmdRaw(QString("s %1").arg(thing));
triggerRaisePrioritizedMemoryWidget();
} }
void CutterCore::seekPrev() void CutterCore::seekPrev()
{ {
cmd("s-"); cmd("s-");
triggerRaisePrioritizedMemoryWidget();
} }
void CutterCore::seekNext() void CutterCore::seekNext()
{ {
cmd("s+"); cmd("s+");
triggerRaisePrioritizedMemoryWidget();
} }
RVA CutterCore::prevOpAddr(RVA startAddr, int count) RVA CutterCore::prevOpAddr(RVA startAddr, int count)