aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPConnectionDelegate.m
diff options
context:
space:
mode:
authorjakob <jakob@eggerapps.at>2010-01-28 20:52:15 +0000
committerjakob <jakob@eggerapps.at>2010-01-28 20:52:15 +0000
commit040f27d6558e818439b6aff1d06bb41cd4854cba (patch)
tree7f2c45dc6769dee7f0fa9e27e318010e3a307e60 /Source/SPConnectionDelegate.m
parentf2a6d2a88de4b492e3c22200c8dc99f2ef475e4a (diff)
downloadsequelpro-040f27d6558e818439b6aff1d06bb41cd4854cba.tar.gz
sequelpro-040f27d6558e818439b6aff1d06bb41cd4854cba.tar.bz2
sequelpro-040f27d6558e818439b6aff1d06bb41cd4854cba.zip
* fixed typo that prevented the document window from closing when choosing 'disconnect' in the connection error dialog
* improved some comments
Diffstat (limited to 'Source/SPConnectionDelegate.m')
-rw-r--r--Source/SPConnectionDelegate.m5
1 files changed, 3 insertions, 2 deletions
diff --git a/Source/SPConnectionDelegate.m b/Source/SPConnectionDelegate.m
index fea894b6..d3c03c81 100644
--- a/Source/SPConnectionDelegate.m
+++ b/Source/SPConnectionDelegate.m
@@ -111,7 +111,8 @@
- (MCPConnectionCheck)connectionLost:(id)connection
{
[NSApp beginSheet:connectionErrorDialog modalForWindow:tableWindow modalDelegate:self didEndSelector:nil contextInfo:nil];
- NSInteger connectionErrorCode = [NSApp runModalForWindow:connectionErrorDialog];
+ NSLog(@"Connection error on main thread? %d", [[NSThread currentThread] isMainThread] );
+ NSInteger connectionErrorCode = [NSApp runModalForWindow:connectionErrorDialog];
[NSApp endSheet:connectionErrorDialog];
[connectionErrorDialog orderOut:nil];
@@ -130,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
+- (void) closeDocumentWindowAndDisconnect:(id)anObject
{
_isConnected = NO;
[self windowWillClose:nil];