mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-25 13:50:57 +00:00
Source\NSBrowser.m: Fixed a bug where setting the path to "/" would not deselect the cells.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/branches/gnustep_testplant_branch@37041 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3ed2a612ad
commit
2929f8aed8
2 changed files with 15 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2013-09-04 Frank Le Grand <frank.legrand@testplant.com>
|
||||
|
||||
* Source\NSBrowser.m: Fixed a bug where setting the path to "/" would
|
||||
not deselect the cells.
|
||||
|
||||
2013-08-27 Frank Le Grand <frank.legrand@testplant.com>
|
||||
|
||||
* Source\NSAttributedString.m: In the absence of a NSFontAttributeName attribute,
|
||||
|
|
|
@ -552,6 +552,7 @@ static NSTextFieldCell *titleCell;
|
|||
*/
|
||||
- (BOOL) setPath: (NSString *)path
|
||||
{
|
||||
NSLog(@"NSBrowser.setPath: %@", path);
|
||||
NSMutableArray *subStrings;
|
||||
NSUInteger numberOfSubStrings;
|
||||
NSUInteger indexOfSubStrings;
|
||||
|
@ -603,11 +604,20 @@ static NSTextFieldCell *titleCell;
|
|||
}
|
||||
else
|
||||
{
|
||||
// Frank LeGrand 2013-09-04: Don't understand comment below,
|
||||
// we're never get here at column 0 when path is "/", so we
|
||||
// will do it after the loop too.
|
||||
|
||||
// Actually it's always called at 0 column
|
||||
[[self matrixInColumn: i] deselectAllCells];
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if (i == 0)
|
||||
{
|
||||
[[self matrixInColumn: i] deselectAllCells];
|
||||
}
|
||||
|
||||
[self setLastColumn: column];
|
||||
indexOfSubStrings = column;
|
||||
|
|
Loading…
Reference in a new issue