mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 05:59:30 +02:00
LCL: win32: use All files instead of All File Types, issue #27654
git-svn-id: trunk@48334 -
This commit is contained in:
parent
ac3eedb892
commit
695ac7c9e9
@ -160,6 +160,10 @@ function UTF8StringToPAnsiChar(const s: string) : PAnsiChar;
|
|||||||
function CanUseVistaDialogs(const AOpenDialog: TOpenDialog): Boolean;
|
function CanUseVistaDialogs(const AOpenDialog: TOpenDialog): Boolean;
|
||||||
{$endif}
|
{$endif}
|
||||||
|
|
||||||
|
var
|
||||||
|
cOpenDialogAllFiles: string = 'All files';
|
||||||
|
|
||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
function SaveApplicationState: TApplicationState;
|
function SaveApplicationState: TApplicationState;
|
||||||
@ -670,7 +674,7 @@ begin
|
|||||||
ReplacePipe(Filter);
|
ReplacePipe(Filter);
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
Filter := 'All File Types(*.*)'+#0+'*.*'+#0; // Default -> avoid empty combobox
|
Filter := cOpenDialogAllFiles+' (*.*)'+#0+'*.*'+#0; // Default -> avoid empty combobox
|
||||||
|
|
||||||
OpenFile := AllocMem(SizeOf(OpenFileName));
|
OpenFile := AllocMem(SizeOf(OpenFileName));
|
||||||
with OpenFile^ do
|
with OpenFile^ do
|
||||||
@ -840,7 +844,7 @@ begin
|
|||||||
ParsedFilter := TParseStringList.Create(AOpenDialog.Filter, '|');
|
ParsedFilter := TParseStringList.Create(AOpenDialog.Filter, '|');
|
||||||
if ParsedFilter.Count = 0 then
|
if ParsedFilter.Count = 0 then
|
||||||
begin
|
begin
|
||||||
ParsedFilter.Add('All File Types(*.*)');
|
ParsedFilter.Add(cOpenDialogAllFiles+' (*.*)');
|
||||||
ParsedFilter.Add('*.*');
|
ParsedFilter.Add('*.*');
|
||||||
end;
|
end;
|
||||||
try
|
try
|
||||||
|
Loading…
Reference in New Issue
Block a user