- fix: Project Options Dialog's Files panel will crash app.

This commit is contained in:
Roy Qu 2022-11-06 12:38:53 +08:00
parent 4eec64939e
commit d4c7ec9bb9
2 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,7 @@ Red Panda C++ Version 2.2
- enhancement: base class dropdown list in new class dialog now works - 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: 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: 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 Red Panda C++ Version 2.1

View File

@ -99,6 +99,7 @@ void ProjectFilesWidget::copyUnits()
unitCopy->setOverrideBuildCmd(unit->overrideBuildCmd()); unitCopy->setOverrideBuildCmd(unit->overrideBuildCmd());
unitCopy->setBuildCmd(unit->buildCmd()); unitCopy->setBuildCmd(unit->buildCmd());
unitCopy->setEncoding(unit->encoding()); unitCopy->setEncoding(unit->encoding());
unitCopy->setFileName(unit->fileName());
mUnits.append(unitCopy); mUnits.append(unitCopy);
} }
} }