diff options
author | stuconnolly <stuart02@gmail.com> | 2011-03-13 18:50:40 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2011-03-13 18:50:40 +0000 |
commit | 1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29 (patch) | |
tree | f2fc34195718108f7770900994443931b6b8807e /Source/SPConnectionHandler.m | |
parent | c2cf0e39c3c59c3548bf39f0835ac552cdcd23f4 (diff) | |
download | sequelpro-1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29.tar.gz sequelpro-1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29.tar.bz2 sequelpro-1632c45fdd9d0b8fe1e0aef3e891e8bd5704df29.zip |
Fix issue related to dragging a node to a group node that is being renamed as well as fix all warnings related to the connection outlinew view.
Diffstat (limited to 'Source/SPConnectionHandler.m')
-rw-r--r-- | Source/SPConnectionHandler.m | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/Source/SPConnectionHandler.m b/Source/SPConnectionHandler.m index e66580a9..bca96ce1 100644 --- a/Source/SPConnectionHandler.m +++ b/Source/SPConnectionHandler.m @@ -24,7 +24,17 @@ // More info at <http://code.google.com/p/sequel-pro/> #import "SPConnectionHandler.h" +#import "SPDatabaseDocument.h" #import "SPAlertSheets.h" +#import "SPSSHTunnel.h" +#import "SPKeychain.h" +#import "RegexKitLite.h" + +@interface SPConnectionController (PrivateAPI) + +- (void)_restoreConnectionInterface; + +@end @implementation SPConnectionController (SPConnectionHandler) @@ -80,8 +90,7 @@ if ([self useSSL]) { [mySQLConnection setSSL:YES usingKeyFilePath:[self sslKeyFileLocationEnabled] ? [self sslKeyFileLocation] : nil - certificatePath:[self sslCertificateFileLocationEnabled] ? [self sslCertificateFileLocation] : nil -certificateAuthorityCertificatePath:[self sslCACertFileLocationEnabled] ? [self sslCACertFileLocation] : nil]; + certificatePath:[self sslCertificateFileLocationEnabled] ? [self sslCertificateFileLocation] : nil certificateAuthorityCertificatePath:[self sslCACertFileLocationEnabled] ? [self sslCACertFileLocation] : nil]; } // Connection delegate must be set before actual connection attempt is made @@ -262,7 +271,7 @@ certificateAuthorityCertificatePath:[self sslCACertFileLocationEnabled] ? [self // Re-enable favorites table view [favoritesOutlineView setEnabled:YES]; - [favoritesOutlineView display]; + [(NSView *)favoritesOutlineView display]; // Release the tunnel if set - will now be retained by the connection if (sshTunnel) [sshTunnel release], sshTunnel = nil; @@ -335,7 +344,7 @@ certificateAuthorityCertificatePath:[self sslCACertFileLocationEnabled] ? [self // Restore the toolbar icons NSArray *toolbarItems = [[[dbDocument parentWindow] toolbar] items]; - for (NSInteger i = 0; i < [toolbarItems count]; i++) [[toolbarItems objectAtIndex:i] setEnabled:YES]; + for (NSUInteger i = 0; i < [toolbarItems count]; i++) [[toolbarItems objectAtIndex:i] setEnabled:YES]; if (connectionKeychainID) [dbDocument setKeychainID:connectionKeychainID]; |