Send the sort message to the data source not the delegate.

This should fix bug #32806.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32624 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
fredkiefer 2011-03-16 19:07:53 +00:00
parent 9fb7317eef
commit 38c2685a68
3 changed files with 10 additions and 4 deletions

View file

@ -1714,10 +1714,10 @@ Also returns the child index relative to this parent. */
- (void) _didChangeSortDescriptors: (NSArray *)oldSortDescriptors
{
if ([_delegate
if ([_dataSource
respondsToSelector: @selector(outlineView:sortDescriptorsDidChange:)])
{
[_delegate outlineView: self sortDescriptorsDidChange: oldSortDescriptors];
[_dataSource outlineView: self sortDescriptorsDidChange: oldSortDescriptors];
}
}