Fix seeking to anything but Adresses in Omnibar

This commit is contained in:
Florian Märkl 2018-04-13 10:55:54 +02:00
parent c79106ef84
commit 839ec9fffe
2 changed files with 3 additions and 7 deletions

View File

@ -373,13 +373,9 @@ void CutterCore::seek(ut64 offset)
// cmd already does emit seekChanged(core_->offset); // cmd already does emit seekChanged(core_->offset);
} }
void CutterCore::seek(QString offset) void CutterCore::seek(QString thing)
{ {
bool converted; cmdRaw(QString("s %1").arg(thing));
auto s = offset.toULongLong(&converted, 16);
if (!converted)
s = offset.toULongLong();
seek(s);
} }
void CutterCore::seekPrev() void CutterCore::seekPrev()

View File

@ -312,7 +312,7 @@ public:
void analyze(int level, QList<QString> advanced); void analyze(int level, QList<QString> advanced);
// Seek functions // Seek functions
void seek(QString addr); void seek(QString thing);
void seek(ut64 offset); void seek(ut64 offset);
void seekPrev(); void seekPrev();
void seekNext(); void seekNext();