diff options
author | rowanbeentje <rowan@beent.je> | 2013-02-21 00:50:15 +0000 |
---|---|---|
committer | rowanbeentje <rowan@beent.je> | 2013-02-21 00:50:15 +0000 |
commit | 77b2f3d777bc743b7b96a9f2267d1a89d704510d (patch) | |
tree | 36a5a2b9369b696a280e9ca6ad1e195e8f74de44 /Source/SPDatabaseDocument.m | |
parent | 9aaa544772539410f28df132be78e0f44da1db10 (diff) | |
download | sequelpro-77b2f3d777bc743b7b96a9f2267d1a89d704510d.tar.gz sequelpro-77b2f3d777bc743b7b96a9f2267d1a89d704510d.tar.bz2 sequelpro-77b2f3d777bc743b7b96a9f2267d1a89d704510d.zip |
- 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.
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r-- | Source/SPDatabaseDocument.m | 8 |
1 files changed, 7 insertions, 1 deletions
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 |