diff options
author | stuconnolly <stuart02@gmail.com> | 2012-01-24 23:19:17 +0000 |
---|---|---|
committer | stuconnolly <stuart02@gmail.com> | 2012-01-24 23:19:17 +0000 |
commit | 816c870b93ad7bd3078d8b7a700e24354adfe4af (patch) | |
tree | db67cc86569ec8b0bf830685ac2ff77c9e34d9fb /Source/SPConnectionController.m | |
parent | 91c69ffc2010a95bd18a6d21cc8665d810ed4128 (diff) | |
download | sequelpro-816c870b93ad7bd3078d8b7a700e24354adfe4af.tar.gz sequelpro-816c870b93ad7bd3078d8b7a700e24354adfe4af.tar.bz2 sequelpro-816c870b93ad7bd3078d8b7a700e24354adfe4af.zip |
Tidy up.
Diffstat (limited to 'Source/SPConnectionController.m')
-rw-r--r-- | Source/SPConnectionController.m | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/Source/SPConnectionController.m b/Source/SPConnectionController.m index 7f67edcc..62767fe8 100644 --- a/Source/SPConnectionController.m +++ b/Source/SPConnectionController.m @@ -312,33 +312,40 @@ static NSComparisonResult _compareFavoritesUsingKey(id favorite1, id favorite2, } permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"", nil]; + [keySelectionPanel setAccessoryView:sshKeyLocationHelp]; - + } // SSL key file location: - } else if (sender == standardSSLKeyFileButton || sender == socketSSLKeyFileButton) { + else if (sender == standardSSLKeyFileButton || sender == socketSSLKeyFileButton) { if ([sender state] == NSOffState) { [self setSslKeyFileLocation:nil]; return; } + permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"key", @"", nil]; - [keySelectionPanel setAccessoryView:sslKeyFileLocationHelp]; + [keySelectionPanel setAccessoryView:sslKeyFileLocationHelp]; + } // SSL certificate file location: - } else if (sender == standardSSLCertificateButton || sender == socketSSLCertificateButton) { + else if (sender == standardSSLCertificateButton || sender == socketSSLCertificateButton) { if ([sender state] == NSOffState) { [self setSslCertificateFileLocation:nil]; return; } + permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"cert", @"crt", @"", nil]; - [keySelectionPanel setAccessoryView:sslCertificateLocationHelp]; + [keySelectionPanel setAccessoryView:sslCertificateLocationHelp]; + } // SSL CA certificate file location: - } else if (sender == standardSSLCACertButton || sender == socketSSLCACertButton) { + else if (sender == standardSSLCACertButton || sender == socketSSLCACertButton) { if ([sender state] == NSOffState) { [self setSslCACertFileLocation:nil]; return; } + permittedFileTypes = [NSArray arrayWithObjects:@"pem", @"cert", @"crt", @"", nil]; + [keySelectionPanel setAccessoryView:sslCACertLocationHelp]; } |