Refreshing now seeks to the correct offset (#552)

This commit is contained in:
fcasal 2018-06-27 16:33:21 +01:00 committed by xarkes
parent 2293b608a8
commit 0c1935d3f1
2 changed files with 2 additions and 2 deletions

View File

@ -130,7 +130,7 @@ DisassemblyWidget::DisassemblyWidget(MainWindow *main, QAction *action)
}); });
connect(Core(), &CutterCore::refreshAll, this, [this]() { connect(Core(), &CutterCore::refreshAll, this, [this]() {
refreshDisasm(Core()->getOffset()); refreshDisasm(seekable->getOffset());
}); });
connect(mCtxMenu, SIGNAL(copy()), mDisasTextEdit, SLOT(copy())); connect(mCtxMenu, SIGNAL(copy()), mDisasTextEdit, SLOT(copy()));

View File

@ -74,7 +74,7 @@ HexdumpWidget::HexdumpWidget(MainWindow *main, QAction *action) :
}); });
connect(Core(), &CutterCore::refreshAll, this, [this]() { connect(Core(), &CutterCore::refreshAll, this, [this]() {
refresh(Core()->getOffset()); refresh(seekable->getOffset());
}); });
connect(ui->hexHexText, &QTextEdit::selectionChanged, this, &HexdumpWidget::selectionChanged); connect(ui->hexHexText, &QTextEdit::selectionChanged, this, &HexdumpWidget::selectionChanged);