Changeset 148 for trunk/UCore.pas
- Timestamp:
- Feb 6, 2017, 12:59:59 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/UCore.pas
r142 r148 73 73 procedure TCore.DataModuleCreate(Sender: TObject); 74 74 begin 75 AcronymDb := TAcronymDb.Create;75 AcronymDb := nil; 76 76 InitializeStarted := False; 77 77 InitializeFinished := False; … … 129 129 if FileNameOption <> '' then begin 130 130 // Open file specified as command line parameter 131 AcronymDB.LoadFromFile(FileNameOption); 132 FormMain.LastOpenedList1.AddItem(FileNameOption); 131 FormMain.ProjectOpen(FileNameOption); 133 132 end else 134 133 if (FormMain.LastOpenedList1.Items.Count > 0) and FileExists(FormMain.LastOpenedList1.Items[0]) then begin 135 134 // Open last opened file 136 AcronymDB.LoadFromFile(FormMain.LastOpenedList1.Items[0])135 FormMain.ProjectOpen(FormMain.LastOpenedList1.Items[0]) 137 136 end else begin 138 137 // Open default database with examples if no item is in recent openned history
Note:
See TracChangeset
for help on using the changeset viewer.