aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2009-08-11 14:35:35 +0000
committerBibiko <bibiko@eva.mpg.de>2009-08-11 14:35:35 +0000
commitcf4adf859ac3b5944801040b8b5035479874e103 (patch)
tree323010241f403ed9b15f9e49b8f935179b72727e /Source
parent07082135254e88cbfd421aa41f12522582b10d89 (diff)
downloadsequelpro-cf4adf859ac3b5944801040b8b5035479874e103.tar.gz
sequelpro-cf4adf859ac3b5944801040b8b5035479874e103.tar.bz2
sequelpro-cf4adf859ac3b5944801040b8b5035479874e103.zip
• after connecting to a server set focus to table list filter field if visible otherwise set focus to Table List view for selecting a table quickly
Diffstat (limited to 'Source')
-rw-r--r--Source/TableDocument.m7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 96554663..02212647 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -213,6 +213,13 @@
queryEditorInitString = nil;
}
+ // Set focus to table list filter field if visible
+ // otherwise set focus to Table List view
+ if ( [[tablesListInstance tables] count] > 20 )
+ [tableWindow makeFirstResponder:listFilterField];
+ else
+ [tableWindow makeFirstResponder:[tablesListInstance valueForKeyPath:@"tablesListView"]];
+
}
/**