From d4c7ec9bb98b490cd52e9e6cbd3817ca10e0eca4 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Sun, 6 Nov 2022 12:38:53 +0800 Subject: [PATCH] - fix: Project Options Dialog's Files panel will crash app. --- NEWS.md | 1 + RedPandaIDE/settingsdialog/projectfileswidget.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/NEWS.md b/NEWS.md index 280564d8..dc40d674 100644 --- a/NEWS.md +++ b/NEWS.md @@ -9,6 +9,7 @@ Red Panda C++ Version 2.2 - enhancement: base class dropdown list in new class dialog now works - fix: Edting / show context menu when code analysis is turned on may crash app. - fix: Show context menu when edting non c/c++ file may crash app. + - fix: Project Options Dialog's Files panel will crash app. Red Panda C++ Version 2.1 diff --git a/RedPandaIDE/settingsdialog/projectfileswidget.cpp b/RedPandaIDE/settingsdialog/projectfileswidget.cpp index b3e47e95..ef88d851 100644 --- a/RedPandaIDE/settingsdialog/projectfileswidget.cpp +++ b/RedPandaIDE/settingsdialog/projectfileswidget.cpp @@ -99,6 +99,7 @@ void ProjectFilesWidget::copyUnits() unitCopy->setOverrideBuildCmd(unit->overrideBuildCmd()); unitCopy->setBuildCmd(unit->buildCmd()); unitCopy->setEncoding(unit->encoding()); + unitCopy->setFileName(unit->fileName()); mUnits.append(unitCopy); } }