update offset at startup (#681)

This commit is contained in:
Vasco Franco 2018-09-06 19:32:12 +02:00 committed by xarkes
parent da0db41888
commit 9501ecf38c
3 changed files with 7 additions and 0 deletions

View File

@ -490,6 +490,11 @@ void CutterCore::seekNext()
triggerRaisePrioritizedMemoryWidget();
}
void CutterCore::updateSeek()
{
emit seekChanged(core_->offset);
}
RVA CutterCore::prevOpAddr(RVA startAddr, int count)
{
CORE_LOCK();

View File

@ -440,6 +440,7 @@ public:
void seek(ut64 offset);
void seekPrev();
void seekNext();
void updateSeek();
RVA getOffset();
RVA prevOpAddr(RVA startAddr, int count);
RVA nextOpAddr(RVA startAddr, int count);

View File

@ -392,6 +392,7 @@ void MainWindow::finalizeOpen()
// Override any incorrect setting saved in the project
core->setSettings();
core->updateSeek();
core->message(tr(" > Populating UI"));
refreshAll();