From 35678468fac4fe5bd954f4f640aadf235f83686d Mon Sep 17 00:00:00 2001 From: jakob Date: Thu, 28 Jan 2010 21:26:57 +0000 Subject: * removed a stray NSLog() * changed name of closeDocumentWindowAndDisconnect-selector again... --- Source/SPConnectionDelegate.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source') 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]; -- cgit v1.2.3