Browse Source

* (bug 6173) invalid drive when browsing over directories that start with a dot in Linux with the IDE's opendialog.
Reaason: Findfirst considers starting with a . "hidden".

git-svn-id: trunk@11435 -

marco 17 years ago
parent
commit
8267078e69
1 changed files with 4 additions and 1 deletions
  1. 4 1
      packages/fv/src/stddlg.pas

+ 4 - 1
packages/fv/src/stddlg.pas

@@ -664,7 +664,10 @@ begin
     { do not change '/' into '' }
     if (Length(ExpPath)>1) and (ExpPath[Length(ExpPath)] = DirSeparator) then
       Dec(ExpPath[0]);
-    FindFirst(ExpPath, Directory, SR);
+    // This function is called on current directories.
+    // If the current dir starts with a . on Linux it is is hidden.
+    // That's why we allow hidden dirs below (bug 6173)
+    FindFirst(ExpPath, Directory+hidden, SR); 
     PathValid := (DosError = 0) and (SR.Attr and Directory <> 0);
 {$ifdef NetDrive}
     if (DosError<>0) and (length(ExpPath)>2) and