mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-14 02:19:39 +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.Filter := Filter;
|
||||
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;
|
||||
// Set some common things.
|
||||
Result.Title := DialogTitle;
|
||||
|
Loading…
Reference in New Issue
Block a user