Changeset 63 for trunk/UCore.pas


Ignore:
Timestamp:
Dec 9, 2021, 11:17:22 PM (3 years ago)
Author:
chronos
Message:
  • Fixed: Open directory with saved split contact files in default file manager under Linux.
  • Fixed: Don't use forbidden characters in saved contact file name.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/UCore.pas

    r62 r63  
    198198      if Items[I].Fields[cfFullName] <> '' then begin
    199199        FileName := SelectDirectoryDialog1.FileName + DirectorySeparator +
    200           Items[I].Fields[cfFullName] + VCardFileExt;
     200          Items[I].FullNameToFileName + VCardFileExt;
    201201        Items[I].SaveToFile(FileName);
    202202        Inc(C);
     
    209209      {$IFDEF WINDOWS}
    210210      ExecuteProgram('explorer.exe', ['"' + SelectDirectoryDialog1.FileName + '"']);
     211      {$ENDIF}
     212      {$IFDEF LINUX}
     213      ExecuteProgram('/usr/bin/xdg-open', [SelectDirectoryDialog1.FileName]);
    211214      {$ENDIF}
    212215    end;
     
    525528  AFileSplit.Enabled := Assigned(DataFile);
    526529  AFileMerge.Enabled := Assigned(DataFile);
     530  AFindDuplicate.Enabled := Assigned(DataFile);
     531  AGenerate.Enabled := Assigned(DataFile);
    527532end;
    528533
Note: See TracChangeset for help on using the changeset viewer.