Changeset 148 for trunk/Forms/UFormMain.pas
- Timestamp:
- Feb 6, 2017, 12:59:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r147 r148 134 134 ProjectClosed: Boolean; 135 135 ImportTotalItemCount: Integer; 136 procedure AcronymDbUpdate(Sender: TObject); 136 137 function FilterCell(Text1, Text2: string): Boolean; 137 138 procedure ProcessImportsJob(Job: TJob); … … 258 259 begin 259 260 AFileClose.Execute; 260 if ProjectClosedthen begin261 if not Assigned(Core.AcronymDb) then begin 261 262 Core.AcronymDb := TAcronymDb.Create; 262 263 Core.AcronymDb.FileName := DefaultFileName; 263 264 Core.AcronymDb.Acronyms.Clear; 265 Core.AcronymDb.OnUpdate.Add(AcronymDbUpdate); 264 266 UpdateAcronymsList; 265 267 UpdateInterface; … … 533 535 end; 534 536 537 procedure TFormMain.AcronymDbUpdate(Sender: TObject); 538 begin 539 UpdateAcronymsList; 540 end; 541 535 542 function TFormMain.FilterCell(Text1, Text2: string): Boolean; 536 543 begin … … 547 554 begin 548 555 AFileClose.Execute; 549 if ProjectClosedthen begin556 if not Assigned(Core.AcronymDb) then begin 550 557 try 551 558 AFileNew.Execute; … … 604 611 begin 605 612 AFileClose.Execute; 606 if ProjectClosedthen begin613 if not Assigned(Core.AcronymDb) then begin 607 614 AFileNew.Execute; 608 615 Core.AcronymDb.LoadFromFile(TMenuItem(Sender).Caption);
Note:
See TracChangeset
for help on using the changeset viewer.