aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPCustomQuery.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPCustomQuery.m')
-rw-r--r--Source/SPCustomQuery.m10
1 files changed, 3 insertions, 7 deletions
diff --git a/Source/SPCustomQuery.m b/Source/SPCustomQuery.m
index 01ff517b..37cdc6e8 100644
--- a/Source/SPCustomQuery.m
+++ b/Source/SPCustomQuery.m
@@ -1979,21 +1979,17 @@
[self performQueries:[NSArray arrayWithObject:queryString] withCallback:@selector(tableSortCallback)];
}
-- (void) tableSortCallback
+- (void)tableSortCallback
{
queryIsTableSorter = NO;
if ([mySQLConnection queryErrored]) {
sortColumn = nil;
+ if(sortField) [sortField release], sortField = nil;
return;
}
- //sets highlight and indicatorImage
- [customQueryView setHighlightedTableColumn:sortColumn];
- if ( isDesc )
- [customQueryView setIndicatorImage:[NSImage imageNamed:@"NSDescendingSortIndicator"] inTableColumn:sortColumn];
- else
- [customQueryView setIndicatorImage:[NSImage imageNamed:@"NSAscendingSortIndicator"] inTableColumn:sortColumn];
+ [[customQueryView onMainThread] setNeedsDisplay:YES];
}