aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorjakob <jakob@eggerapps.at>2010-01-28 21:26:57 +0000
committerjakob <jakob@eggerapps.at>2010-01-28 21:26:57 +0000
commit35678468fac4fe5bd954f4f640aadf235f83686d (patch)
tree7be49d2e0e4a977bff8e94fb8a30a77dd03bdb58 /Source
parent040f27d6558e818439b6aff1d06bb41cd4854cba (diff)
downloadsequelpro-35678468fac4fe5bd954f4f640aadf235f83686d.tar.gz
sequelpro-35678468fac4fe5bd954f4f640aadf235f83686d.tar.bz2
sequelpro-35678468fac4fe5bd954f4f640aadf235f83686d.zip
* removed a stray NSLog()
* changed name of closeDocumentWindowAndDisconnect-selector again...
Diffstat (limited to 'Source')
-rw-r--r--Source/SPConnectionDelegate.m6
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/SPConnectionDelegate.m b/Source/SPConnectionDelegate.m
index d3c03c81..6e755d1a 100644
--- a/Source/SPConnectionDelegate.m
+++ b/Source/SPConnectionDelegate.m
@@ -111,7 +111,7 @@
- (MCPConnectionCheck)connectionLost:(id)connection
{
[NSApp beginSheet:connectionErrorDialog modalForWindow:tableWindow modalDelegate:self didEndSelector:nil contextInfo:nil];
- NSLog(@"Connection error on main thread? %d", [[NSThread currentThread] isMainThread] );
+
NSInteger connectionErrorCode = [NSApp runModalForWindow:connectionErrorDialog];
[NSApp endSheet:connectionErrorDialog];
@@ -119,7 +119,7 @@
// If 'disconnect' was selected, trigger a window close.
if (connectionErrorCode == MCPConnectionCheckDisconnect) {
- [self performSelectorOnMainThread:@selector(closeDocumentWindowAndDisconnect:) withObject:nil waitUntilDone:YES];
+ [self performSelectorOnMainThread:@selector(closeDocumentWindowAndDisconnect) withObject:nil waitUntilDone:YES];
}
return connectionErrorCode;
@@ -131,7 +131,7 @@
* everything up before it's all deallocated as a result of the close.
* Also sets alpha to fully transparent so accidental dialogs are hidden!
*/
-- (void) closeDocumentWindowAndDisconnect:(id)anObject
+- (void) closeDocumentWindowAndDisconnect
{
_isConnected = NO;
[self windowWillClose:nil];