- Class browser not correctly updated after create project file

This commit is contained in:
Roy Qu 2022-11-07 12:07:15 +08:00
parent fba7bd953c
commit ef1fbf3d8b
1 changed files with 3 additions and 0 deletions

View File

@ -387,6 +387,9 @@ PProjectUnit Project::newUnit(PProjectModelNode parentNode, const QString& custo
newUnit->setOverrideBuildCmd(false);
newUnit->setBuildCmd("");
newUnit->setEncoding(toByteArray(mOptions.encoding));
mParser->addProjectFile(newUnit->fileName(),true);
emit unitAdded(newUnit->fileName());
return newUnit;
}