aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks/MCPKit
diff options
context:
space:
mode:
authorrowanbeentje <rowan@beent.je>2009-11-05 00:00:23 +0000
committerrowanbeentje <rowan@beent.je>2009-11-05 00:00:23 +0000
commit4cc035fd625bc2ee76927cf9e7649af829ce8482 (patch)
tree170a8ac6da319e002f48e1ca561f55f5177d4209 /Frameworks/MCPKit
parent97fd0957cef34210caece133fee16a370e5b9f5d (diff)
downloadsequelpro-4cc035fd625bc2ee76927cf9e7649af829ce8482.tar.gz
sequelpro-4cc035fd625bc2ee76927cf9e7649af829ce8482.tar.bz2
sequelpro-4cc035fd625bc2ee76927cf9e7649af829ce8482.zip
- Alter query start/stop notifications to apply to only the originating window, regardless of key state, by passing in and looking for the table document instance
Diffstat (limited to 'Frameworks/MCPKit')
-rw-r--r--Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
index dd830e02..b321b404 100644
--- a/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
+++ b/Frameworks/MCPKit/MCPFoundationKit/MCPConnection.m
@@ -1278,7 +1278,7 @@ void performThreadedKeepAlive(void *ptr)
// Write a log entry
if ([delegate respondsToSelector:@selector(queryGaveError:connection:)]) [delegate queryGaveError:@"No connection available!" connection:self];
// Notify that the query has been performed
- [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self];
+ [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:delegate];
// Show an error alert while resetting
NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), @"No connection available!",
nil, nil, [delegate valueForKeyPath:@"tableWindow"], self, nil, nil, nil, @"No connection available!");
@@ -1330,7 +1330,7 @@ void performThreadedKeepAlive(void *ptr)
[self setLastErrorMessage:errorMessage];
// Notify that the query has been performed
- [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self];
+ [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:delegate];
// Show an error alert while resetting
NSBeginAlertSheet(NSLocalizedString(@"Error", @"error"), NSLocalizedString(@"OK", @"OK button"),
nil, nil, [delegate valueForKeyPath:@"tableWindow"], self, nil, nil, nil, errorMessage);
@@ -1347,7 +1347,7 @@ void performThreadedKeepAlive(void *ptr)
if (![self checkConnection]) {
// Notify that the query has been performed
- [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:self];
+ [[NSNotificationCenter defaultCenter] postNotificationName:@"SMySQLQueryHasBeenPerformed" object:delegate];
return nil;
}
}