Changeset 148 for trunk/UCore.pas


Ignore:
Timestamp:
Feb 6, 2017, 12:59:59 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Update filtered acronyms in main window if they were changed in acronyms and categories window.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r142 r148  
    7373procedure TCore.DataModuleCreate(Sender: TObject);
    7474begin
    75   AcronymDb := TAcronymDb.Create;
     75  AcronymDb := nil;
    7676  InitializeStarted := False;
    7777  InitializeFinished := False;
     
    129129    if FileNameOption <> '' then begin
    130130      // Open file specified as command line parameter
    131       AcronymDB.LoadFromFile(FileNameOption);
    132       FormMain.LastOpenedList1.AddItem(FileNameOption);
     131      FormMain.ProjectOpen(FileNameOption);
    133132    end else
    134133    if (FormMain.LastOpenedList1.Items.Count > 0) and FileExists(FormMain.LastOpenedList1.Items[0]) then begin
    135134      // Open last opened file
    136       AcronymDB.LoadFromFile(FormMain.LastOpenedList1.Items[0])
     135      FormMain.ProjectOpen(FormMain.LastOpenedList1.Items[0])
    137136    end else begin
    138137      // Open default database with examples if no item is in recent openned history
Note: See TracChangeset for help on using the changeset viewer.