LCL: fix OpenDocument on Mac for folders. Issue #0038670. Patch by Trevor Roydhouse.

git-svn-id: trunk@64890 -
This commit is contained in:
bart 2021-03-29 15:46:18 +00:00
parent be1d17f306
commit ce7e9909e5

View File

@ -39,8 +39,8 @@ var
lpath: string;
begin
Result := True;
if not FileExistsUTF8(APath) then begin
// Windows OpenDocument handles URLs as well
if not FileExistsUTF8(APath) and not DirectoryExistsUTF8(Apath) then begin
// OpenDocument handles URLs as well
Result := OpenURL(Apath);
Exit;
end;