mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-29 21:57:39 +00:00
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:
parent
734a6c759d
commit
50a4201f22
4 changed files with 18 additions and 22 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue