mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-07 21:18:17 +02:00
TFilenameEdit: don't force the TOpenDialog.InitialDir to current directory if InitialDir is empty string. Issue #40845.
This commit is contained in:
parent
0ad56931a0
commit
7446930ef3
@ -1451,7 +1451,10 @@ begin
|
|||||||
O.Options := DialogOptions;
|
O.Options := DialogOptions;
|
||||||
O.Filter := Filter;
|
O.Filter := Filter;
|
||||||
O.FilterIndex := FilterIndex;
|
O.FilterIndex := FilterIndex;
|
||||||
O.InitialDir := CleanAndExpandDirectory(InitialDir);
|
if (InitialDir <> '') then //don't force currentdir here, let WS do it's normal "magic" to decide where to open
|
||||||
|
O.InitialDir := CleanAndExpandDirectory(InitialDir)
|
||||||
|
else
|
||||||
|
O.InitialDir := '';
|
||||||
end;
|
end;
|
||||||
// Set some common things.
|
// Set some common things.
|
||||||
Result.Title := DialogTitle;
|
Result.Title := DialogTitle;
|
||||||
|
Loading…
Reference in New Issue
Block a user