Ignore:
Timestamp:
Feb 9, 2022, 5:07:14 PM (2 years ago)
Author:
chronos
Message:
  • Modified: Updated speed of loading of big number of contacts.
  • Added: Contact field indexes cache for faster reverse search of contact fields by its index.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormContact.pas

    r103 r104  
    685685  if EditHomeAddressCity.Text <> '' then Address := Address + ' ' + EditHomeAddressCity.Text;
    686686  if EditHomeAddressCountry.Text <> '' then Address := Address + ' ' + EditHomeAddressCountry.Text;
    687   OpenURL(Core.MapUrl + URLEncode(Trim(Address)));
     687  if Trim(Address) <> '' then
     688    OpenURL(Core.MapUrl + URLEncode(Trim(Address)));
    688689end;
    689690
     
    704705  if EditWorkAddressCity.Text <> '' then Address := Address + ' ' + EditWorkAddressCity.Text;
    705706  if EditWorkAddressCountry.Text <> '' then Address := Address + ' ' + EditWorkAddressCountry.Text;
    706   OpenURL(Core.MapUrl + URLEncode(Trim(Address)));
     707  if Trim(Address) <> '' then
     708    OpenURL(Core.MapUrl + URLEncode(Trim(Address)));
    707709end;
    708710
Note: See TracChangeset for help on using the changeset viewer.