mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-31 20:40:47 +00:00
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:
parent
03616e71ee
commit
84d277b3ae
2 changed files with 8 additions and 7 deletions
|
@ -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>
|
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
|
* Source/NSMenu.m: Beginning of support for windows style menus on the
|
||||||
|
|
|
@ -1124,15 +1124,11 @@ selectCellWithString: (NSString*)title
|
||||||
|
|
||||||
ASSIGN (_directory, pathToColumn(_browser, [_browser lastColumn]));
|
ASSIGN (_directory, pathToColumn(_browser, [_browser lastColumn]));
|
||||||
filename = [[_form cellAtIndex: 0] stringValue];
|
filename = [[_form cellAtIndex: 0] stringValue];
|
||||||
if ([filename isAbsolutePath] == YES)
|
if ([filename isAbsolutePath] == NO)
|
||||||
{
|
{
|
||||||
ASSIGN (_fullFileName, filename);
|
filename = [_directory stringByAppendingPathComponent: filename];
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ASSIGN (_fullFileName, [_directory stringByAppendingPathComponent:
|
|
||||||
filename]);
|
|
||||||
}
|
}
|
||||||
|
ASSIGN (_fullFileName, [filename stringByStandardizingPath]);
|
||||||
|
|
||||||
if (_delegateHasUserEnteredFilename)
|
if (_delegateHasUserEnteredFilename)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue