aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TablesList.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/TablesList.m')
-rw-r--r--Source/TablesList.m10
1 files changed, 9 insertions, 1 deletions
diff --git a/Source/TablesList.m b/Source/TablesList.m
index 76e653be..6ef3d315 100644
--- a/Source/TablesList.m
+++ b/Source/TablesList.m
@@ -1609,7 +1609,15 @@
*/
- (void) makeTableListFilterHaveFocus
{
- [tableWindow makeFirstResponder:listFilterField];
+ if([tables count] > 20) {
+ [tableWindow makeFirstResponder:listFilterField];
+ }
+ else if([tables count] > 2) {
+ [tableWindow makeFirstResponder:tablesListView];
+ if([tablesListView numberOfSelectedRows] < 1)
+ [tablesListView selectRowIndexes:[NSIndexSet indexSetWithIndex:1] byExtendingSelection:NO];
+
+ }
}
/**