summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJean-Marc.Levecque <jmarc.levecque@bbox.fr>2014-11-10 14:16:36 +0100
committerJean-Marc.Levecque <jmarc.levecque@bbox.fr>2014-11-10 14:16:36 +0100
commit4227d541f13ee55693d15e4a477b94be12090e23 (patch)
tree4770ec6b4ba2fe4af57232b2a81bb31cdd25f436 /src
parentba44c218aece88ae94d1f9c4708ff7379328c87f (diff)
parent453996807a4806860d30bde520fcc527376f4452 (diff)
downloadfpGUI-4227d541f13ee55693d15e4a477b94be12090e23.tar.xz
Merge branch 'develop' of https://github.com/graemeg/fpGUI.git into develop
Diffstat (limited to 'src')
-rw-r--r--src/gui/selectdirdialog.inc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/selectdirdialog.inc b/src/gui/selectdirdialog.inc
index 6a96d046..063c7972 100644
--- a/src/gui/selectdirdialog.inc
+++ b/src/gui/selectdirdialog.inc
@@ -135,7 +135,6 @@ begin
begin
try
SortList := TStringList.Create;
- SortList.Sorted := True;
repeat
// check if special file
if (FileInfo.Name = '.') or (FileInfo.Name = '..') or (FileInfo.Name = '') then
@@ -153,10 +152,12 @@ begin
hidden files then do not add it to the list. }
//if ((faHidden and FileInfo.Attr) > 0) and not FShowHidden then
//continue;
-
SortList.Add(FileInfo.Name);
end;
until fpgFindNext(FileInfo) <> 0;
+
+ SortList.Sort;
+
for i := 0 to SortList.Count - 1 do
begin
NewNode := Node.AppendText(SortList[i]);