Changeset 14 for trunk/StudioModules/LDModuleProject/ULDModuleProject.pas
- Timestamp:
- Aug 6, 2012, 10:49:50 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/StudioModules/LDModuleProject/ULDModuleProject.pas
r12 r14 107 107 procedure TDataModuleProject.ACloseExecute(Sender: TObject); 108 108 begin 109 if Project.Modified then ASaveAs.Execute; 110 FreeAndNil(Project); 111 UpdateInterface; 109 if Assigned(Project) then begin 110 if Project.Modified then ASaveAs.Execute; 111 FreeAndNil(Project); 112 UpdateInterface; 113 end; 112 114 end; 113 115 … … 145 147 FormProject := TFormProject.Create(nil); 146 148 FormProject.API := TLDStudioAPI(API); 149 DockForm(FormProject, dtRight); 147 150 DataModuleProject.PopupMenu1.Items.Caption := SProject; 148 151 RegisterMainMenuItem(DataModuleProject.PopupMenu1.Items, nil, 1);
Note:
See TracChangeset
for help on using the changeset viewer.