Standardize path before checking existance.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26770 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Fred Kiefer 2008-07-12 18:27:41 +00:00
parent e39b7a04b4
commit bcd595e826
2 changed files with 8 additions and 7 deletions

View file

@ -1,3 +1,8 @@
2008-07-12 Fred Kiefer <FredKiefer@gmx.de>
* Source/NSSavePanel.m (-ok:): Standardize path before checking
for existance.
2008-07-08 16:15-EDT Gregory John Casamento <greg_casamento@yahoo.com>
* Source/NSMenu.m: Beginning of support for windows style menus on the

View file

@ -1124,15 +1124,11 @@ selectCellWithString: (NSString*)title
ASSIGN (_directory, pathToColumn(_browser, [_browser lastColumn]));
filename = [[_form cellAtIndex: 0] stringValue];
if ([filename isAbsolutePath] == YES)
if ([filename isAbsolutePath] == NO)
{
ASSIGN (_fullFileName, filename);
}
else
{
ASSIGN (_fullFileName, [_directory stringByAppendingPathComponent:
filename]);
filename = [_directory stringByAppendingPathComponent: filename];
}
ASSIGN (_fullFileName, [filename stringByStandardizingPath]);
if (_delegateHasUserEnteredFilename)
{