mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-12 17:49:07 +02:00
* (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:
parent
c43e674824
commit
8267078e69
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user