diff --git a/src/widgets/DisassemblyWidget.cpp b/src/widgets/DisassemblyWidget.cpp index 4098f339..3567905e 100644 --- a/src/widgets/DisassemblyWidget.cpp +++ b/src/widgets/DisassemblyWidget.cpp @@ -130,7 +130,7 @@ DisassemblyWidget::DisassemblyWidget(MainWindow *main, QAction *action) }); connect(Core(), &CutterCore::refreshAll, this, [this]() { - refreshDisasm(Core()->getOffset()); + refreshDisasm(seekable->getOffset()); }); connect(mCtxMenu, SIGNAL(copy()), mDisasTextEdit, SLOT(copy())); diff --git a/src/widgets/HexdumpWidget.cpp b/src/widgets/HexdumpWidget.cpp index d19bd73b..e20ee7e8 100644 --- a/src/widgets/HexdumpWidget.cpp +++ b/src/widgets/HexdumpWidget.cpp @@ -74,7 +74,7 @@ HexdumpWidget::HexdumpWidget(MainWindow *main, QAction *action) : }); connect(Core(), &CutterCore::refreshAll, this, [this]() { - refresh(Core()->getOffset()); + refresh(seekable->getOffset()); }); connect(ui->hexHexText, &QTextEdit::selectionChanged, this, &HexdumpWidget::selectionChanged);