mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 02:48:49 +00:00
Fix seeking to anything but Adresses in Omnibar
This commit is contained in:
parent
c79106ef84
commit
839ec9fffe
@ -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()
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user