* (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 -
This commit is contained in:
marco 2008-07-22 16:55:53 +00:00
parent c43e674824
commit 8267078e69

View File

@ -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