Changeset 68 for trunk/UContact.pas


Ignore:
Timestamp:
Dec 10, 2021, 11:15:41 AM (3 years ago)
Author:
chronos
Message:
  • Fixed: Wrong field selected for duplicates find from field combobox selection in Find duplicates window.
  • Added: Sort list of contact fields in Find duplicates and Field windows.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UContact.pas

    r66 r68  
    162162
    163163uses
    164   UQuotedPrintable;
     164  UQuotedPrintable, UCommon;
    165165
    166166const
     
    674674  I: Integer;
    675675begin
    676   while AItems.Count < Count do AItems.Add('');
    677   while AItems.Count > Count do AItems.Delete(AItems.Count - 1);
    678   for I := 0 to Count - 1 do
    679     AItems[I] := Items[I].Title;
     676  AItems.BeginUpdate;
     677  try
     678    while AItems.Count < Count do AItems.Add('');
     679    while AItems.Count > Count do AItems.Delete(AItems.Count - 1);
     680    for I := 0 to Count - 1 do begin
     681      AItems.Objects[I] := Items[I];
     682      AItems[I] := Items[I].Title;
     683    end;
     684    SortStrings(AItems);
     685  finally
     686    AItems.EndUpdate;
     687  end;
    680688end;
    681689
Note: See TracChangeset for help on using the changeset viewer.