aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-08-24 11:11:43 +0000
committerBibiko <bibiko@eva.mpg.de>2010-08-24 11:11:43 +0000
commit015321ca8747bbd2ee6f8a153e779835f75f9efe (patch)
tree7696444fbc902c51170cce62bade1ccf1af0c8bb
parentc4bd975b837184ed6742968982e1298d3f9ead7f (diff)
downloadsequelpro-015321ca8747bbd2ee6f8a153e779835f75f9efe.tar.gz
sequelpro-015321ca8747bbd2ee6f8a153e779835f75f9efe.tar.bz2
sequelpro-015321ca8747bbd2ee6f8a153e779835f75f9efe.zip
• in [SPCustomQuery tableSortCallback]
- removed unnecessary header indicator image setting - set [[customQueryView onMainThread] setNeedsDisplay:YES] to ensure to display table rendering correctly after changing the sort order
-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];
}