From eb2e2bb58f78d23839de95975ef669d809e15161 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 16 Mar 2022 19:48:20 +0800 Subject: [PATCH] - fix: switch disassembly mode doesn't update contents --- NEWS.md | 1 + RedPandaIDE/widgets/cpudialog.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/NEWS.md b/NEWS.md index f1c464b1..fbbb4f4e 100644 --- a/NEWS.md +++ b/NEWS.md @@ -30,6 +30,7 @@ Red Panda C++ Version 1.0.0 - fix: correct tokenize statements like "using ::memcpy"; - fix: wrong font size of exported HTML file - fix: parse error in avxintrin.h + - fix: switch disassembly mode doesn't update contents Red Panda C++ Version 0.14.5 - fix: the "gnu c++ 20" option in compiler set options is wrong diff --git a/RedPandaIDE/widgets/cpudialog.cpp b/RedPandaIDE/widgets/cpudialog.cpp index b564b7c7..fe85ded8 100644 --- a/RedPandaIDE/widgets/cpudialog.cpp +++ b/RedPandaIDE/widgets/cpudialog.cpp @@ -162,14 +162,14 @@ void CPUDialog::closeEvent(QCloseEvent *event) void CPUDialog::on_rdIntel_toggled(bool) { - sendSyntaxCommand(); + updateInfo(); pSettings->debugger().setUseIntelStyle(ui->rdIntel->isChecked()); pSettings->debugger().save(); } void CPUDialog::on_rdATT_toggled(bool) { - sendSyntaxCommand(); + updateInfo(); pSettings->debugger().setUseIntelStyle(ui->rdIntel->isChecked()); pSettings->debugger().save(); }