Fixed sort direction stuck to the reverse of the sort descriptor prototype

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29298 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Quentin Mathe 2010-01-16 22:43:31 +00:00
parent 668fbe236a
commit b9306be2f8

View file

@ -5960,7 +5960,7 @@ This method is deprecated, use -columnIndexesInRect:. */
/* Invert the sort direction when the same column header is clicked twice */
if ([[newMainSortDescriptor key] isEqual: [oldMainSortDescriptor key]])
{
newMainSortDescriptor = [newMainSortDescriptor reversedSortDescriptor];
newMainSortDescriptor = [oldMainSortDescriptor reversedSortDescriptor];
}
[newSortDescriptors removeObjectsInArray: outdatedDescriptors];