Ignore:
Timestamp:
Dec 13, 2021, 11:45:47 PM (2 years ago)
Author:
chronos
Message:
  • Added: Logo contact field.
  • Fixed: Copy and paste were incorrectly copying duplicate contacts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContacts.pas

    r73 r74  
    355355  for I := 0 to ListView1.Items.Count - 1 do
    356356    if ListView1.Items[I].Selected then begin
     357      Strings.Clear;
    357358      TContact(ListView1.Items[I].Data).SaveToStrings(Strings);
    358359      Text := Text + Strings.Text;
     
    375376    for I := 0 to ListView1.Items.Count - 1 do
    376377      if ListView1.Items[I].Selected then begin
     378        Strings.Clear;
    377379        TContact(ListView1.Items[I].Data).SaveToStrings(Strings);
    378380        Text := Text + Strings.Text;
     
    562564  ALoadFromFile.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
    563565  ASaveToFile.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     566  ACopy.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     567  ACut.Enabled := Assigned(Contacts) and Assigned(ListView1.Selected);
     568  APaste.Enabled := Assigned(Contacts) and (Clipboard.AsText <> '');
    564569end;
    565570
Note: See TracChangeset for help on using the changeset viewer.