mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 05:59:33 +02:00
LCL: fixed ofFileMustExist for non-UTF8 system charset.
git-svn-id: trunk@15606 -
This commit is contained in:
parent
2e9c3b92a6
commit
c8713eb786
@ -193,7 +193,7 @@ end;
|
||||
|
||||
function TOpenDialog.CheckFileMustExist(const AFileName: string): boolean;
|
||||
begin
|
||||
if not FileExists(AFilename) then begin
|
||||
if not FileExists(Utf8ToAnsi(AFilename)) then begin
|
||||
Result:=false;
|
||||
MessageDlg(rsfdFileMustExist,
|
||||
Format(rsfdFileNotExist,[AFileName]),mtError,
|
||||
@ -319,7 +319,7 @@ end;
|
||||
|
||||
function TSelectDirectoryDialog.CheckFileMustExist(const AFilename: string): boolean;
|
||||
begin
|
||||
if not DirPathExists(AFilename) then begin
|
||||
if not DirPathExists(Utf8ToAnsi(AFilename)) then begin
|
||||
Result:=false;
|
||||
MessageDlg(rsfdDirectoryMustExist,
|
||||
Format(rsfdDirectoryNotExist,[AFileName]),mtError,
|
||||
|
Loading…
Reference in New Issue
Block a user