diff --git a/RedPandaIDE/project.cpp b/RedPandaIDE/project.cpp index 6f0b740b..851b1514 100644 --- a/RedPandaIDE/project.cpp +++ b/RedPandaIDE/project.cpp @@ -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; }