- Timestamp:
- May 9, 2016, 3:34:24 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormMain.pas
r22 r26 86 86 procedure CheckBoxExactMathChange(Sender: TObject); 87 87 procedure EditSearchChange(Sender: TObject); 88 procedure FormShow(Sender: TObject); 88 89 procedure FormClose(Sender: TObject; var CloseAction: TCloseAction); 89 90 procedure FormCloseQuery(Sender: TObject; var CanClose: boolean); 90 91 procedure FormCreate(Sender: TObject); 91 92 procedure FormDestroy(Sender: TObject); 92 procedure FormShow(Sender: TObject);93 93 procedure LastOpenedList1Change(Sender: TObject); 94 94 procedure ListViewAcronymsData(Sender: TObject; Item: TListItem); … … 318 318 PersistentForm1.Load(Self); 319 319 320 if (LastOpenedList1.Items.Count > 0) and FileExists(LastOpenedList1.Items[0]) then 320 if ParamCount > 0 then begin 321 AcronymDB.LoadFromFile(ParamStr(1)); 322 LastOpenedList1.AddItem(OpenDialog1.FileName); 323 end else 324 if (LastOpenedList1.Items.Count > 0) and FileExists(LastOpenedList1.Items[0]) then 321 325 AcronymDB.LoadFromFile(LastOpenedList1.Items[0]); 322 326 UpdateAcronymsList;
Note:
See TracChangeset
for help on using the changeset viewer.