summaryrefslogtreecommitdiff
path: root/packages/fv
diff options
context:
space:
mode:
authormarco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-07-22 16:55:53 +0000
committermarco <marco@3ad0048d-3df7-0310-abae-a5850022a9f2>2008-07-22 16:55:53 +0000
commit30ea15c05a67dd6d0b3bd5e4500b48bc6b326159 (patch)
tree3254d7f3745eb7ffeabde7b6ba1f6efc51cb75d1 /packages/fv
parenta3f670666579735cb218a442be76bf32558fc91f (diff)
downloadfpc-30ea15c05a67dd6d0b3bd5e4500b48bc6b326159.tar.gz
* (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: http://svn.freepascal.org/svn/fpc/trunk@11435 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages/fv')
-rw-r--r--packages/fv/src/stddlg.pas5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/fv/src/stddlg.pas b/packages/fv/src/stddlg.pas
index 4b584e4e62..6891160015 100644
--- a/packages/fv/src/stddlg.pas
+++ b/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