From a50c6af5de687eb228199ab1e1474d1ac5a936f0 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Thu, 23 Dec 2021 09:17:27 +0800 Subject: [PATCH] fix: correctly set states for buttons in cpu dialog --- RedPandaIDE/mainwindow.cpp | 1 + RedPandaIDE/widgets/cpudialog.cpp | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 93aad18e..642f69cb 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -1694,6 +1694,7 @@ void MainWindow::showCPUInfoDialog() if (mCPUDialog==nullptr) { mCPUDialog = new CPUDialog(this); connect(mCPUDialog, &CPUDialog::closed, this, &MainWindow::cleanUpCPUDialog); + updateCompileActions(); } mCPUDialog->show(); } diff --git a/RedPandaIDE/widgets/cpudialog.cpp b/RedPandaIDE/widgets/cpudialog.cpp index d9e8aa4e..794ee894 100644 --- a/RedPandaIDE/widgets/cpudialog.cpp +++ b/RedPandaIDE/widgets/cpudialog.cpp @@ -53,7 +53,6 @@ CPUDialog::CPUDialog(QWidget *parent) : updateIcons(); connect(pIconsManager,&IconsManager::actionIconsUpdated, this, &CPUDialog::updateIcons); - updateButtonStates(false); } CPUDialog::~CPUDialog()