From cd776c24ef483bb23eae47e0002e7af684c50b40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Thu, 24 May 2018 15:42:27 +0200 Subject: [PATCH] Avoid calling triggerRaisePrioritizedMemoryWidget() on every command --- src/Cutter.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Cutter.cpp b/src/Cutter.cpp index 186d1237..5ebba6a0 100644 --- a/src/Cutter.cpp +++ b/src/Cutter.cpp @@ -167,7 +167,6 @@ QString CutterCore::cmd(const QString &str) memoryWidgetPriority = MemoryWidgetType::Disassembly; } } - triggerRaisePrioritizedMemoryWidget(); return o; } @@ -375,21 +374,25 @@ void CutterCore::seek(ut64 offset) } cmd(QString("s %1").arg(offset)); // cmd already does emit seekChanged(core_->offset); + triggerRaisePrioritizedMemoryWidget(); } void CutterCore::seek(QString thing) { cmdRaw(QString("s %1").arg(thing)); + triggerRaisePrioritizedMemoryWidget(); } void CutterCore::seekPrev() { cmd("s-"); + triggerRaisePrioritizedMemoryWidget(); } void CutterCore::seekNext() { cmd("s+"); + triggerRaisePrioritizedMemoryWidget(); } RVA CutterCore::prevOpAddr(RVA startAddr, int count)