Force asm.offset=true for now

This commit is contained in:
Florian Märkl 2017-11-28 14:24:35 +01:00
parent fad16b4a17
commit 7f378d66c3
2 changed files with 8 additions and 0 deletions

View File

@ -829,6 +829,10 @@ void CutterCore::setSettings()
setConfig("asm.midflags", 2); setConfig("asm.midflags", 2);
//setConfig("asm.bbline", "true"); //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("anal.hasnext", true);
setConfig("asm.fcncalls", false); setConfig("asm.fcncalls", false);
setConfig("asm.calls", false); setConfig("asm.calls", false);

View File

@ -24,6 +24,10 @@ AsmOptionsDialog::AsmOptionsDialog(QWidget *parent)
QFont currentFont = Config()->getFont(); QFont currentFont = Config()->getFont();
ui->fontSelectionLabel->setText(currentFont.toString()); 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(); updateFromVars();
} }