mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-22 18:11:06 +00:00
Add code to reset column if the delegate is item-based
This commit is contained in:
parent
ffdf8fb6da
commit
f5decac3ba
1 changed files with 15 additions and 2 deletions
|
@ -1226,7 +1226,21 @@ static BOOL browserUseBezels;
|
|||
selectedCells = [[matrix selectedCells] copy];
|
||||
|
||||
// Perform the data load
|
||||
[self _performLoadOfColumn: column];
|
||||
if (_itemBasedDelegate == YES)
|
||||
{
|
||||
if (column == 0)
|
||||
{
|
||||
_lastItemLoaded = [_browserDelegate rootItemForBrowser: self];
|
||||
}
|
||||
|
||||
[self _performLoadOfItem: _lastItemLoaded
|
||||
forColumn: column];
|
||||
}
|
||||
else
|
||||
{
|
||||
[self _performLoadOfColumn: column];
|
||||
}
|
||||
|
||||
// set last column loaded
|
||||
[self setLastColumn: column];
|
||||
|
||||
|
@ -2305,7 +2319,6 @@ static BOOL browserUseBezels;
|
|||
}
|
||||
|
||||
_browserDelegate = anObject;
|
||||
NSLog(@"_browserDelegate = %@", _browserDelegate);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue