From 2af2fc31a11e9a925bc15654f5f30cf922bfb4cc Mon Sep 17 00:00:00 2001 From: Alexander Ljungberg Date: Tue, 14 Dec 2010 21:36:04 +0100 Subject: [PATCH] Fixed: archived table views could end up with a nil sort descriptor instead of an empty array. --- AppKit/CPTableView.j | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AppKit/CPTableView.j b/AppKit/CPTableView.j index 23f648166..eee6df3a3 100644 --- a/AppKit/CPTableView.j +++ b/AppKit/CPTableView.j @@ -279,8 +279,6 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; _currentHighlightedTableColumn = nil; - _sortDescriptors = []; - _draggedRowIndexes = [CPIndexSet indexSet]; _verticalMotionCanDrag = YES; _isSelectingSession = NO; @@ -351,6 +349,9 @@ CPTableViewFirstColumnOnlyAutoresizingStyle = 5; _sourceListInactiveBottomLineColor = [CPColor colorWithCalibratedRed:(150.0/255.0) green:(161.0/255.0) blue:(183.0/255.0) alpha:1.0];*/ _differedColumnDataToRemove = []; _implementsCustomDrawRow = [self implementsSelector:@selector(drawRow:clipRect:)]; + + if (!_sortDescriptors) + _sortDescriptors = []; } /*!