Ignore:
Timestamp:
Mar 24, 2019, 2:26:29 PM (6 years ago)
Author:
chronos
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormUnitKinds.pas

    r284 r287  
    9898    FormUnitKind := TFormUnitKind.Create(Self);
    9999    try
    100       FormUnitKind.Load(TempEntry);
     100      FormUnitKind.UnitKind := TempEntry;
    101101      if FormUnitKind.ShowModal = mrOk then begin
    102         FormUnitKind.Save(TempEntry);
    103102        TUnitKind(ListView1.Selected.Data).Assign(TempEntry);
    104103        UpdateList;
     
    120119  try
    121120    TempEntry.Name := SNewUnitKind;
    122     FormUnitKind.Load(TempEntry);
     121    FormUnitKind.UnitKind := TempEntry;
    123122    if FormUnitKind.ShowModal = mrOk then begin
    124       FormUnitKind.Save(TempEntry);
    125123      UnitKinds.Add(TempEntry);
    126124      TempEntry := nil;
Note: See TracChangeset for help on using the changeset viewer.