Minor path check fix.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13981 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-Macdonald 2002-06-26 20:37:00 +00:00
parent 06c5cae449
commit 7836c1430f
2 changed files with 5 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-06-27 Richard Frith-Macdonald <rfm@gnu.org>
* Source/NSWorkspace.m: Fix error in testing base path for app.
Wed Jun 26 17:50:39 2002 Nicola Pero <n.pero@mi.flashnet.it>
* Source/NSTextField.m ([-textDidEndEditing:]): Post the

View file

@ -564,7 +564,7 @@ inFileViewerRootedAtPath: (NSString*)rootFullpath
* If the original name included a path, check that the located name
* matches it. If it doesn't we return nil as MacOS-X does.
*/
if (base != nil
if ([base length] > 0
&& [base isEqual: [path stringByDeletingLastPathComponent]] == NO)
{
path = nil;