From 77b2f3d777bc743b7b96a9f2267d1a89d704510d Mon Sep 17 00:00:00 2001 From: rowanbeentje Date: Thu, 21 Feb 2013 00:50:15 +0000 Subject: - When favorites in the connection view gave no password, no longer set the focus to the password field as soon as they're selected; instead, make the password field the next responder for tab keys. This addresses Issue #1555. --- Source/SPDatabaseDocument.m | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'Source/SPDatabaseDocument.m') diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m index 577306ae..eb61c6fc 100644 --- a/Source/SPDatabaseDocument.m +++ b/Source/SPDatabaseDocument.m @@ -4195,6 +4195,13 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase"; // Add the progress window to this window [self centerTaskWindow]; [parentWindow addChildWindow:taskProgressWindow ordered:NSWindowAbove]; + +#ifndef SP_CODA + // If not connected, update the favorite selection + if (!_isConnected) { + [connectionController updateFavoriteSelection:self]; + } +#endif } /** @@ -4239,7 +4246,6 @@ static NSString *SPRenameDatabaseAction = @"SPRenameDatabase"; // If the window is being set for the first time - connection controller is visible - update focus if (!parentWindow && !mySQLConnection) { [aWindow makeFirstResponder:(NSResponder *)[connectionController favoritesOutlineView]]; - [connectionController updateFavoriteSelection:self]; } #endif -- cgit v1.2.3