Changeset 54 for trunk/IDE/UCore.pas
- Timestamp:
- Jun 26, 2012, 7:41:11 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IDE/UCore.pas
r53 r54 36 36 procedure ProjectTemplatesInit; 37 37 procedure ProjectOpen(FileName: string); 38 procedure ProjectNew; 38 39 procedure CompilerDebugLog(Text: string); 39 40 procedure LoadFromRegistry(Root: HKEY; Key: string); … … 55 56 procedure TCore.ProjectOpen(FileName: string); 56 57 begin 57 Project .Active := True;58 ProjectNew; 58 59 Project.LoadFromFile(FileName); 59 60 LastOpenedFiles.AddItem(FileName); 60 61 FormMain.UpdateInterface; 62 end; 63 64 procedure TCore.ProjectNew; 65 begin 66 if Assigned(Project) then FreeAndNil(Project); 67 Project := TProject.Create; 68 Project.FileName := SNewProject; 61 69 end; 62 70 … … 97 105 begin 98 106 LastOpenedFiles.LoadToMenuItem(FormMain.MenuItemOpenRecent, 107 FormMain.OpenRecentClick); 108 LastOpenedFiles.LoadToMenuItem(FormMain.PopupMenu1.Items, 99 109 FormMain.OpenRecentClick); 100 110 end;
Note:
See TracChangeset
for help on using the changeset viewer.