diff --git a/NEWS.md b/NEWS.md index 4b09f44d..15c804d4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -12,6 +12,7 @@ Red Panda C++ Version 0.14.1 - enhancement: theme now have default icon set - fix: wrong icons for file associations - fix: editor's font size set by ctrl+mouse wheel will be reset by open the option dialog + - fix: actions not correctly disabled when compile Red Panda C++ Version 0.14.0 - enhancement: custom icon set ( in the configuration folder) diff --git a/RedPandaIDE/mainwindow.cpp b/RedPandaIDE/mainwindow.cpp index 0ab9ca91..ce36e722 100644 --- a/RedPandaIDE/mainwindow.cpp +++ b/RedPandaIDE/mainwindow.cpp @@ -1409,10 +1409,10 @@ bool MainWindow::compile(bool rebuild) if (mCompileSuccessionTask) { mCompileSuccessionTask->filename = mProject->executable(); } - updateCompileActions(); openCloseBottomPanel(true); ui->tabMessages->setCurrentWidget(ui->tabCompilerOutput); mCompilerManager->compileProject(mProject,rebuild); + updateCompileActions(); updateAppTitle(); } else { Editor * editor = mEditorList->getEditor(); @@ -1425,10 +1425,10 @@ bool MainWindow::compile(bool rebuild) if (mCompileSuccessionTask) { mCompileSuccessionTask->filename = getCompiledExecutableName(editor->filename()); } - updateCompileActions(); openCloseBottomPanel(true); ui->tabMessages->setCurrentWidget(ui->tabCompilerOutput); mCompilerManager->compile(editor->filename(),editor->fileEncoding(),rebuild); + updateCompileActions(); updateAppTitle(); return true; }