diff options
author | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-08-17 16:49:08 +0000 |
---|---|---|
committer | graemeg <graemeg@ae50a9b5-8222-0410-bf8d-8a13f76226bf> | 2007-08-17 16:49:08 +0000 |
commit | b1126c0aa96b0b41f973a28b0c710e0c4aaf4637 (patch) | |
tree | 76325f41a9164ddc68ea81a705b17efed68276b3 | |
parent | f7fe54002e1564132cf67f99958b5268c67ba314 (diff) | |
download | fpGUI-b1126c0aa96b0b41f973a28b0c710e0c4aaf4637.tar.xz |
* FileDialog: Focus is now in sync in the grid based on you last directory you exited or the first item when you go deaper in the hierarchy.
-rw-r--r-- | src/gui/gui_dialogs.pas | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/gui_dialogs.pas b/src/gui/gui_dialogs.pas index e1ae1711..1f38aa94 100644 --- a/src/gui/gui_dialogs.pas +++ b/src/gui/gui_dialogs.pas @@ -1009,12 +1009,14 @@ begin grid.FileList.ReadDirectory(GetFileFilter, ShowHidden); grid.FileList.Sort(soFileName); - grid.Update; +// grid.Update; if fsel <> '' then SelectFile(fsel) else grid.FocusRow := 1; + + grid.Update; end; function TfpgFileDialog.SelectFile(const AFilename: string): boolean; |