Fix for selecting single file in open panel

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@5372 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 1999-12-03 14:36:09 +00:00
parent a0bad93a22
commit 99e27a7bb2
2 changed files with 7 additions and 0 deletions

View file

@ -1,3 +1,9 @@
Fri Dec 3 14:38:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSOpenPanel.m ([-browser:selectCellWithString:inColumn:])
fixed to set the _fullFileName ivar so that the panel can return
the selected filename.
Fri Dec 3 11:34:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* Source/NSApplication.m: ([-updateWindowsItem:]) modified to show

View file

@ -371,6 +371,7 @@ selectCellWithString: (NSString *)title
[self _setDirectory: [sender pathToColumn: [_browser lastColumn]]
updateBrowser: NO];
ASSIGN (_fullFileName, [sender path]);
if (_canChooseDirectories)
{
if ([[sender selectedCell] isLeaf])