From 839ec9fffe7c1a7925f027ef49d30f26bf90c48c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=A4rkl?= Date: Fri, 13 Apr 2018 10:55:54 +0200 Subject: [PATCH] Fix seeking to anything but Adresses in Omnibar --- src/Cutter.cpp | 8 ++------ src/Cutter.h | 2 +- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/src/Cutter.cpp b/src/Cutter.cpp index 5430b22b..e1d297e4 100644 --- a/src/Cutter.cpp +++ b/src/Cutter.cpp @@ -373,13 +373,9 @@ void CutterCore::seek(ut64 offset) // cmd already does emit seekChanged(core_->offset); } -void CutterCore::seek(QString offset) +void CutterCore::seek(QString thing) { - bool converted; - auto s = offset.toULongLong(&converted, 16); - if (!converted) - s = offset.toULongLong(); - seek(s); + cmdRaw(QString("s %1").arg(thing)); } void CutterCore::seekPrev() diff --git a/src/Cutter.h b/src/Cutter.h index 98b4462c..844edb52 100644 --- a/src/Cutter.h +++ b/src/Cutter.h @@ -312,7 +312,7 @@ public: void analyze(int level, QList advanced); // Seek functions - void seek(QString addr); + void seek(QString thing); void seek(ut64 offset); void seekPrev(); void seekNext();