- Timestamp:
- Apr 6, 2012, 9:43:56 AM (13 years ago)
- Location:
- trunk/IDE
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/Forms/UFormMain.pas
r50 r51 250 250 Compiler.SourceFiles.Clear; 251 251 Project.Files.DumpFileList(Compiler.SourceFiles); 252 Compiler.MainSource := Project.MainSource.AbsoluteFileName; 252 253 TargetProject.FileName := ExtractFileDir(Project.FileName) + DirectorySeparator + 253 254 Compiler.CompiledFolder + DirectorySeparator + Compiler.Target.Name + -
trunk/IDE/UProject.pas
r50 r51 357 357 NewNode := Doc.DocumentElement.FindNode('MainSource'); 358 358 if Assigned(NewNode) then begin 359 MainSourceName := UTF8Encode(NewNode.Text Source);360 359 MainSourceName := UTF8Encode(NewNode.TextContent); 360 MainSource := Files.SearchFile(MainSourceName); 361 361 end; 362 362 … … 385 385 with RootNode do begin 386 386 NewNode := CreateElement('MainSource'); 387 NewNode.TextContent := UTF8Decode(MainSource.FileName); 387 if Assigned(MainSource) then 388 NewNode.TextContent := UTF8Decode(MainSource.FileName); 388 389 AppendChild(NewNode); 389 390 … … 419 420 Files.Clear; 420 421 Packages.Clear; 422 MainSource := nil; 421 423 end; 422 424 -
trunk/IDE/UProjectTemplates.pas
r48 r51 64 64 Add('end.'); 65 65 end; 66 Project.MainSource := NewFile; 66 67 end; 67 68 … … 88 89 Add('end.'); 89 90 end; 91 Project.MainSource := NewFile; 90 92 end; 91 93 … … 118 120 Add('end.'); 119 121 end; 122 Project.MainSource := NewFile; 120 123 end; 121 124 … … 140 143 Add('end.'); 141 144 end; 145 Project.MainSource := NewFile; 142 146 end; 143 147
Note:
See TracChangeset
for help on using the changeset viewer.