aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTableView.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-10-27 02:10:26 +0000
committerrowanbeentje <rowan@beent.je>2009-10-27 02:10:26 +0000
commitf90186c282f37878f9c80b41a478bcde4af74502 (patch)
tree66851f80f1c74ca5f9668f35ae2487e336b8dc8a /Source/SPTableView.m
parenta99b0940d264ffbc4c525c5f17049f64e391ccc3 (diff)
downloadsequelpro-f90186c282f37878f9c80b41a478bcde4af74502.tar.gz
sequelpro-f90186c282f37878f9c80b41a478bcde4af74502.tar.bz2
sequelpro-f90186c282f37878f9c80b41a478bcde4af74502.zip
- When performing threaded data loads, no longer disable the tables and instead prevent selection/editing/sorting in code; this prevents the tableviews from going grey during the load and minimises flicker and loss of focussed elements.
Diffstat (limited to 'Source/SPTableView.m')
-rw-r--r--Source/SPTableView.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPTableView.m b/Source/SPTableView.m
index 6e9ccd65..a2e0c713 100644
--- a/Source/SPTableView.m
+++ b/Source/SPTableView.m
@@ -76,6 +76,12 @@
{
if (![[[[self delegate] class] description] isEqualToString:@"CustomQuery"] &&
![[[[self delegate] class] description] isEqualToString:@"SPQueryFavoriteManager"]){
+
+ // Ensure that editing is permitted
+ if (![[self delegate] tableView:self shouldEditTableColumn:[[self tableColumns] objectAtIndex:0] row:[self selectedRow]])
+ return;
+
+ // Trigger a cell edit
[self editColumn:0 row:[self selectedRow] withEvent:nil select:YES];
return;
}