ide: auto add resources to the main project file on creating a new project

git-svn-id: trunk@16946 -
This commit is contained in:
paul 2008-10-10 06:17:31 +00:00
parent 7c0a1d29a9
commit 808d7c402b

View File

@ -8290,6 +8290,10 @@ begin
// rebuild codetools defines
MainBuildBoss.RescanCompilerDefines(true,true);
if not Project1.Resources.UpdateMainSourceFile(Project1.MainFilename) then
DebugLn('TMainIDE.DoNewProject Project1.Resources.UpdateMainSourceFile failed');
// (i.e. remove old project specific things and create new)
IncreaseCompilerParseStamp;
Project1.DefineTemplates.AllChanged;