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/Forms/UFormProperty.pas

    r56 r68  
    6464begin
    6565  if ComboBoxField.ItemIndex <> -1 then begin
    66     Field := TContactsFile(Core.DataFile).Fields[ComboBoxField.ItemIndex];
     66    Field := TContactField(ComboBoxField.Items.Objects[ComboBoxField.ItemIndex]);
    6767    if Assigned(Field) then begin
    6868      EditName.Text := Field.SysName;
     
    132132    GroupsArray);
    133133  if Assigned(Field) then
    134     ComboBoxField.ItemIndex := TContactsFile(Core.DataFile).Fields.IndexOf(Field);
     134    ComboBoxField.ItemIndex := ComboBoxField.Items.IndexOfObject(Field);
    135135end;
    136136
Note: See TracChangeset for help on using the changeset viewer.