aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionController.m
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2010-06-05 23:51:54 +0000
committerrowanbeentje <rowan@beent.je>2010-06-05 23:51:54 +0000
commitabfba8d070eca98f602a25722b27eff44a613a40 (patch)
tree554488e511dda9155fb43108c78560678d650225 /Source/SPConnectionController.m
parentd2fc07c38b51c6fa0f27586e52eee668d5bf2add (diff)
downloadsequelpro-abfba8d070eca98f602a25722b27eff44a613a40.tar.gz
sequelpro-abfba8d070eca98f602a25722b27eff44a613a40.tar.bz2
sequelpro-abfba8d070eca98f602a25722b27eff44a613a40.zip
- Tweak initial window load to select the correct favourite, also applying focus correctly
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r--Source/SPConnectionController.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m
index 5ea3aa77..ad2bdf62 100644
--- a/Source/SPConnectionController.m
+++ b/Source/SPConnectionController.m
@@ -110,8 +110,9 @@
[favoritesTable setDoubleAction:@selector(initiateConnection:)];
[favoritesTable registerForDraggedTypes:[NSArray arrayWithObject:favoritesPBoardType]];
[favoritesTable setDraggingSourceOperationMask:NSDragOperationMove forLocal:YES];
- // Set the focus to the favorites table and select the appropriate row
- [[tableDocument parentWindow] setInitialFirstResponder:favoritesTable];
+
+ // Sort the favourites to match prefs and select the appropriate row
+ [self _sortFavorites];
NSInteger tableRow;
if ([prefs boolForKey:SPSelectLastFavoriteUsed] == YES) {
tableRow = [prefs integerForKey:SPLastFavoriteIndex] + 1;
@@ -128,7 +129,6 @@
[self resizeTabViewToConnectionType:SPTCPIPConnection animating:NO];
}
}
- [self _sortFavorites];
return self;
}