From b1126c0aa96b0b41f973a28b0c710e0c4aaf4637 Mon Sep 17 00:00:00 2001 From: graemeg Date: Fri, 17 Aug 2007 16:49:08 +0000 Subject: * 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. --- src/gui/gui_dialogs.pas | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3-70-g09d2