Changeset 51 for trunk/IDE/UProject.pas
- Timestamp:
- Apr 6, 2012, 9:43:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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
Note:
See TracChangeset
for help on using the changeset viewer.