diff --git a/src/cutter.cpp b/src/cutter.cpp index c55ed3c0..f3d508a1 100644 --- a/src/cutter.cpp +++ b/src/cutter.cpp @@ -829,6 +829,10 @@ void CutterCore::setSettings() setConfig("asm.midflags", 2); //setConfig("asm.bbline", "true"); + // asm.offset=false would break reading the offset in DisassemblyWidget + // TODO: remove this when DisassemblyWidget::readDisassemblyOffset() allows it + setConfig("asm.offset", true); + setConfig("anal.hasnext", true); setConfig("asm.fcncalls", false); setConfig("asm.calls", false); diff --git a/src/dialogs/AsmOptionsDialog.cpp b/src/dialogs/AsmOptionsDialog.cpp index 84f91d27..2ac8b011 100644 --- a/src/dialogs/AsmOptionsDialog.cpp +++ b/src/dialogs/AsmOptionsDialog.cpp @@ -24,6 +24,10 @@ AsmOptionsDialog::AsmOptionsDialog(QWidget *parent) QFont currentFont = Config()->getFont(); ui->fontSelectionLabel->setText(currentFont.toString()); + // asm.offset=false would break reading the offset in DisassemblyWidget + // TODO: remove this when DisassemblyWidget::readDisassemblyOffset() allows it + ui->offsetCheckBox->setVisible(false); + updateFromVars(); }