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);
}
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()

View File

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