mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-15 06:39:26 +02:00
fixed gtk2 interface from setting the current dir to '' if Dialog.Initial dir = ''
git-svn-id: trunk@11451 -
This commit is contained in:
parent
c4eda87b12
commit
bada39fac6
@ -740,15 +740,16 @@ begin
|
||||
ofOverwritePrompt in TOpenDialog(theDialog).Options);
|
||||
end;
|
||||
*)
|
||||
|
||||
gtk_file_chooser_set_current_folder (SelWidget, pgChar( FileDialog.InitialDir) );
|
||||
if FileDialog.InitialDir <> '' then
|
||||
gtk_file_chooser_set_current_folder (SelWidget, pgChar( FileDialog.InitialDir) );
|
||||
gtk_file_chooser_set_current_name (SelWidget, pgChar( FileDialog.FileName) );
|
||||
|
||||
if FileDialog is TOpenDialog then
|
||||
InitializeOpenDialog(TOpenDialog(FileDialog), SelWidget);
|
||||
|
||||
if FileDialog.InheritsFrom(TSaveDialog) then begin
|
||||
gtk_file_chooser_set_current_folder (SelWidget, PChar(FileDialog.InitialDir));
|
||||
if FileDialog.InitialDir <> '' then
|
||||
gtk_file_chooser_set_current_folder (SelWidget, PChar(FileDialog.InitialDir));
|
||||
gtk_file_chooser_set_current_name (SelWidget, PChar(FileDialog.FileName));
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user