mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-26 06:40:55 +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>
|
2013-08-27 Frank Le Grand <frank.legrand@testplant.com>
|
||||||
|
|
||||||
* Source\NSAttributedString.m: In the absence of a NSFontAttributeName attribute,
|
* Source\NSAttributedString.m: In the absence of a NSFontAttributeName attribute,
|
||||||
|
|
|
@ -552,6 +552,7 @@ static NSTextFieldCell *titleCell;
|
||||||
*/
|
*/
|
||||||
- (BOOL) setPath: (NSString *)path
|
- (BOOL) setPath: (NSString *)path
|
||||||
{
|
{
|
||||||
|
NSLog(@"NSBrowser.setPath: %@", path);
|
||||||
NSMutableArray *subStrings;
|
NSMutableArray *subStrings;
|
||||||
NSUInteger numberOfSubStrings;
|
NSUInteger numberOfSubStrings;
|
||||||
NSUInteger indexOfSubStrings;
|
NSUInteger indexOfSubStrings;
|
||||||
|
@ -603,12 +604,21 @@ static NSTextFieldCell *titleCell;
|
||||||
}
|
}
|
||||||
else
|
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
|
// Actually it's always called at 0 column
|
||||||
[[self matrixInColumn: i] deselectAllCells];
|
[[self matrixInColumn: i] deselectAllCells];
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (i == 0)
|
||||||
|
{
|
||||||
|
[[self matrixInColumn: i] deselectAllCells];
|
||||||
|
}
|
||||||
|
|
||||||
[self setLastColumn: column];
|
[self setLastColumn: column];
|
||||||
indexOfSubStrings = column;
|
indexOfSubStrings = column;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue