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); } }