aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionHandler.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-10-20 15:24:10 +0200
committerMax <post@wickenrode.com>2015-10-20 15:24:10 +0200
commit5357fd1375d19a6c5de96293b3899f430422a3c0 (patch)
tree18c0ca79b6be40aecbd8200ceedd9111a346bb63 /Source/SPConnectionHandler.m
parente12e3e86f26b47a51c10940bca1102326d47bf82 (diff)
downloadsequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.tar.gz
sequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.tar.bz2
sequelpro-5357fd1375d19a6c5de96293b3899f430422a3c0.zip
Replace a lot of SPBeginAlertSheet()s with the more concise SPOnewayAlertSheet()
This should also eliminate a few use-after-free crashes
Diffstat (limited to 'Source/SPConnectionHandler.m')
-rw-r--r--Source/SPConnectionHandler.m6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/SPConnectionHandler.m b/Source/SPConnectionHandler.m
index d27e9a1a..a1c7a532 100644
--- a/Source/SPConnectionHandler.m
+++ b/Source/SPConnectionHandler.m
@@ -353,7 +353,11 @@ static NSString *SPLocalhostAddress = @"127.0.0.1";
// If SSL was enabled, check it was established correctly
if (useSSL && ([self type] == SPTCPIPConnection || [self type] == SPSocketConnection)) {
if (![mySQLConnection isConnectedViaSSL]) {
- SPBeginAlertSheet(NSLocalizedString(@"SSL connection not established", @"SSL requested but not used title"), NSLocalizedString(@"OK", @"OK button"), nil, nil, [dbDocument parentWindow], nil, nil, nil, NSLocalizedString(@"You requested that the connection should be established using SSL, but MySQL made the connection without SSL.\n\nThis may be because the server does not support SSL connections, or has SSL disabled; or insufficient details were supplied to establish an SSL connection.\n\nThis connection is not encrypted.", @"SSL connection requested but not established error detail"));
+ SPOnewayAlertSheet(
+ NSLocalizedString(@"SSL connection not established", @"SSL requested but not used title"),
+ [dbDocument parentWindow],
+ NSLocalizedString(@"You requested that the connection should be established using SSL, but MySQL made the connection without SSL.\n\nThis may be because the server does not support SSL connections, or has SSL disabled; or insufficient details were supplied to establish an SSL connection.\n\nThis connection is not encrypted.", @"SSL connection requested but not established error detail")
+ );
}
else {
#ifndef SP_CODA