Fix bug recognising path extensions

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27309 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2008-12-16 19:31:50 +00:00
parent 734a6c759d
commit 50a4201f22
4 changed files with 18 additions and 22 deletions

View file

@ -151,9 +151,7 @@ setPath(NSBrowser *browser, NSString *path)
NSString *file = [[names lastObject] stringByStandardizingPath];
BOOL isDir;
if (file &&
[_fm fileExistsAtPath: file isDirectory: &isDir] &&
isDir)
if (file && [_fm fileExistsAtPath: file isDirectory: &isDir] && isDir)
{
[self setDirectory: file];
}
@ -1666,14 +1664,13 @@ createRowsForColumn: (int)column
exists = [_fm fileExistsAtPath: pathAndFile
isDirectory: &isDir];
if (isDir && !_treatsFilePackagesAsDirectories
&& [ws isFilePackageAtPath: pathAndFile])
&& [ws isFilePackageAtPath: pathAndFile])
{
isDir = NO;
}
if (_delegateHasShowFilenameFilter)
{
exists = [_delegate panel: self
shouldShowFilename: pathAndFile];
exists = [_delegate panel: self shouldShowFilename: pathAndFile];
}
if (exists && !isDir)