Changeset 30 for trunk/UAcronym.pas


Ignore:
Timestamp:
Jul 12, 2016, 5:56:39 PM (8 years ago)
Author:
chronos
Message:
  • Fixed: Load also acronym description.
  • Added: Interface icons.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UAcronym.pas

    r29 r30  
    525525  T: string;
    526526  LastLength: Integer;
     527  AddedAcronym: TAcronymMeaning;
    527528begin
    528529  ItemCount := 0;
     
    587588                ivAcronym: NewAcronym.Name := T;
    588589                ivMeaning: NewAcronym.Meaning := T;
     590                ivDescription: NewAcronym.Description := T;
    589591              end;
    590592              Delete(S, 1, P + Length(EndString) - 1);
     
    592594              if (Flag = ipfNewItem) and (Trim(NewAcronym.Name) <> '') and
    593595                (Trim(NewAcronym.Meaning) <> '') then begin
    594                   Sources.AcronymDb.AddAcronym(NewAcronym.Name, NewAcronym.Meaning);
     596                  AddedAcronym := Sources.AcronymDb.AddAcronym(NewAcronym.Name, NewAcronym.Meaning);
     597                  AddedAcronym.Description := NewAcronym.Description;
    595598                  Inc(ItemCount);
    596599                end;
Note: See TracChangeset for help on using the changeset viewer.