- Timestamp:
- Dec 9, 2021, 11:17:22 PM (3 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Forms/UFormContacts.pas
r61 r63 414 414 end; 415 415 SaveDialog1.InitialDir := ExtractFileDir(Core.LastContactFileName); 416 SaveDialog1.FileName := TContact(ListView1.Selected.Data).F ields[cfFullName]+416 SaveDialog1.FileName := TContact(ListView1.Selected.Data).FullNameToFileName + 417 417 VCardFileExt; 418 418 if SaveDialog1.Execute then begin -
trunk/UContact.pas
r61 r63 110 110 Properties: TContactProperties; 111 111 Parent: TContactsFile; 112 function FullNameToFileName: string; 112 113 function GetProperty(Field: TContactField): TContactProperty; overload; 113 114 function GetProperty(FieldIndex: TContactFieldIndex): TContactProperty; overload; … … 728 729 end; 729 730 731 function TContact.FullNameToFileName: string; 732 var 733 I: Integer; 734 begin 735 Result := Fields[cfFullName]; 736 for I := 1 to Length(Result) do begin 737 if Result[I] in [':', '/', '\', '.', '"', '*', '|', '?', '<', '>'] then 738 Result[I] := '_'; 739 end; 740 end; 741 730 742 function TContact.GetProperty(Field: TContactField): TContactProperty; 731 743 var -
trunk/UCore.lfm
r62 r63 506 506 AppName = 'vCard Studio' 507 507 Description = 'vCard files management tool' 508 ReleaseDate = 445 24508 ReleaseDate = 44539 509 509 RegistryKey = '\Software\Chronosoft\vCard Studio' 510 510 RegistryRoot = rrKeyCurrentUser -
trunk/UCore.pas
r62 r63 198 198 if Items[I].Fields[cfFullName] <> '' then begin 199 199 FileName := SelectDirectoryDialog1.FileName + DirectorySeparator + 200 Items[I].F ields[cfFullName]+ VCardFileExt;200 Items[I].FullNameToFileName + VCardFileExt; 201 201 Items[I].SaveToFile(FileName); 202 202 Inc(C); … … 209 209 {$IFDEF WINDOWS} 210 210 ExecuteProgram('explorer.exe', ['"' + SelectDirectoryDialog1.FileName + '"']); 211 {$ENDIF} 212 {$IFDEF LINUX} 213 ExecuteProgram('/usr/bin/xdg-open', [SelectDirectoryDialog1.FileName]); 211 214 {$ENDIF} 212 215 end; … … 525 528 AFileSplit.Enabled := Assigned(DataFile); 526 529 AFileMerge.Enabled := Assigned(DataFile); 530 AFindDuplicate.Enabled := Assigned(DataFile); 531 AGenerate.Enabled := Assigned(DataFile); 527 532 end; 528 533
Note:
See TracChangeset
for help on using the changeset viewer.