Changeset 34 for trunk/UCore.pas


Ignore:
Timestamp:
Nov 25, 2021, 1:51:20 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Memory allocation during files merge.
  • Fixed: Select all context menu action was not selecting all items.
  • Modified: Statusbar moved into contacts form and it is now showin total, filtered and selected number of items.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r31 r34  
    364364      Result.Loaded := TempFile.Contacts.Count;
    365365      for I := 0 to TempFile.Contacts.Count - 1 do begin
    366         NewContact := TContactsFile(DataFile).Contacts.Search(TContact(TempFile.Contacts[I]).Fields[cfFullName]);
     366        NewContact := TContactsFile(DataFile).Contacts.Search(TempFile.Contacts[I].Fields[cfFullName]);
    367367        if not Assigned(NewContact) then begin
    368368          NewContact := TContact.Create;
    369369          NewContact.Parent := TContactsFile(DataFile);
    370           NewContact.Assign(TContact(TempFile.Contacts[I]));
     370          NewContact.Assign(TempFile.Contacts[I]);
    371371          TContactsFile(DataFile).Contacts.Add(NewContact);
    372372          Inc(Result.New);
    373373        end else begin
    374           if NewContact.UpdateFrom(TContact(TempFile.Contacts[I])) then
     374          if NewContact.UpdateFrom(TempFile.Contacts[I]) then
    375375            Inc(Result.Updated);
    376376        end;
     
    402402      else FormContacts.Contacts := nil;
    403403    FormContacts.ReloadList;
     404    FormContacts.UpdateInterface;
    404405  end;
    405406end;
Note: See TracChangeset for help on using the changeset viewer.