Ignore:
Timestamp:
Aug 6, 2012, 10:49:50 AM (12 years ago)
Author:
chronos
Message:
  • Modified: API revised to slave proxy model.
  • Added: Modules can control docking of forms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/StudioModules/LDModuleProject/ULDModuleProject.pas

    r12 r14  
    107107procedure TDataModuleProject.ACloseExecute(Sender: TObject);
    108108begin
    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;
    112114end;
    113115
     
    145147    FormProject := TFormProject.Create(nil);
    146148    FormProject.API := TLDStudioAPI(API);
     149    DockForm(FormProject, dtRight);
    147150    DataModuleProject.PopupMenu1.Items.Caption := SProject;
    148151    RegisterMainMenuItem(DataModuleProject.PopupMenu1.Items, nil, 1);
Note: See TracChangeset for help on using the changeset viewer.