mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-06 04:37:54 +02:00
IDE: Improve initialization of directory browse button in FindInFilesDlg. Issue #40344, patch from Bruno K.
This commit is contained in:
parent
8b426df777
commit
36a4b07e52
@ -296,7 +296,7 @@ object LazFindInFilesDialog: TLazFindInFilesDialog
|
||||
end
|
||||
object SelectDirectoryDialog: TSelectDirectoryDialog
|
||||
FilterIndex = 0
|
||||
Options = [ofFileMustExist, ofEnableSizing, ofViewDetail]
|
||||
Options = [ofExtensionDifferent,ofFileMustExist,ofEnableSizing,ofViewDetail]
|
||||
Left = 180
|
||||
Top = 70
|
||||
end
|
||||
|
@ -160,6 +160,7 @@ begin
|
||||
else
|
||||
SelectDirectoryDialog.InitialDir := GetBaseDirectory;
|
||||
|
||||
SelectDirectoryDialog.FileName:='';
|
||||
if SelectDirectoryDialog.Execute then
|
||||
DirectoriesComboBox.Text := AppendPathDelim(TrimFilename(SelectDirectoryDialog.FileName));
|
||||
StoreIDEFileDialog(SelectDirectoryDialog);
|
||||
|
Loading…
Reference in New Issue
Block a user