aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
diff options
context:
space:
mode:
authorMax <post@wickenrode.com>2015-07-12 02:27:07 +0200
committerMax <post@wickenrode.com>2015-07-12 02:27:07 +0200
commitdc1adcaafc3439c1998fdfaf15f0cdeee9be778f (patch)
tree32e080908ea0c42804f65372fc0b987d06d16173 /Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
parent1b0938196c23225917b72ea172605adf33d6843d (diff)
downloadsequelpro-dc1adcaafc3439c1998fdfaf15f0cdeee9be778f.tar.gz
sequelpro-dc1adcaafc3439c1998fdfaf15f0cdeee9be778f.tar.bz2
sequelpro-dc1adcaafc3439c1998fdfaf15f0cdeee9be778f.zip
Fix an issue on 10.7+ introduced in ce33534
This removes a IMHO useless makeFirstResponder: call. In all cases where [NSApp mainWindow] == usedSheet (< 10.7) the call right above it would already handle it. On the other hand if [NSApp mainWindow] != usedSheet (10.7+) the call would fail anyways because in that case editTextView is not even a subview of the main window.
Diffstat (limited to 'Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m')
-rw-r--r--Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
index 7cbe384a..6fbf5a86 100644
--- a/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
+++ b/Frameworks/SPMySQLFramework/Source/SPMySQLConnection.m
@@ -418,7 +418,7 @@ const char *SPMySQLSSLPermissibleCiphers = "DHE-RSA-AES256-SHA:AES256-SHA:DHE-RS
// If a connection is already active in some form, throw an exception
if (state != SPMySQLDisconnected && state != SPMySQLConnectionLostInBackground) {
- [NSException raise:NSInternalInconsistencyException format:@"Attempted to connect a connection that is not disconnected (%d).", state];
+ [NSException raise:NSInternalInconsistencyException format:@"Attempted to connect a connection that is not disconnected (SPMySQLConnectionState=%d).", state];
return NO;
}
state = SPMySQLConnecting;