mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +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);
|
// 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()
|
||||||
|
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user