diff options
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r-- | Source/TableDocument.m | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m index 4ef781e3..b2da29af 100644 --- a/Source/TableDocument.m +++ b/Source/TableDocument.m @@ -3690,9 +3690,8 @@ */ - (void)windowWillClose:(NSNotification *)aNotification { - if ([[[SPNavigatorController sharedNavigatorController] window] isVisible]) { - [[SPNavigatorController sharedNavigatorController] removeConnection:[self connectionID]]; - } + + [[SPNavigatorController sharedNavigatorController] removeConnection:[self connectionID]]; [mySQLConnection setDelegate:nil]; if (_isConnected) [self closeConnection]; |