aboutsummaryrefslogtreecommitdiffstats
path: root/Source/TableDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-03-23 09:51:46 +0000
committerBibiko <bibiko@eva.mpg.de>2010-03-23 09:51:46 +0000
commit331d5f6d8a9bbb16089da8522d97d584e9921d73 (patch)
tree3f6186034703520de310b8a1255acddb1eea03f4 /Source/TableDocument.m
parente47a76c457528fb2ef9fb20cf0f02d09a488a8a8 (diff)
downloadsequelpro-331d5f6d8a9bbb16089da8522d97d584e9921d73.tar.gz
sequelpro-331d5f6d8a9bbb16089da8522d97d584e9921d73.tar.bz2
sequelpro-331d5f6d8a9bbb16089da8522d97d584e9921d73.zip
• Navigator
- gather more information - show infos for proc/func - improved error handling - reduced jittering while closing a connection window - still hidden - if navigator is not visible no navigator code will be executed
Diffstat (limited to 'Source/TableDocument.m')
-rw-r--r--Source/TableDocument.m7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/TableDocument.m b/Source/TableDocument.m
index 4580e392..797631e3 100644
--- a/Source/TableDocument.m
+++ b/Source/TableDocument.m
@@ -1176,8 +1176,6 @@
{
BOOL isNavigatorVisible = [[[SPNavigatorController sharedNavigatorController] window] isVisible];
- // If the Console window is not visible data are not reloaded (for speed).
- // Due to that update list if user opens the Console window.
if(!isNavigatorVisible) {
[[SPNavigatorController sharedNavigatorController] updateEntries:self];
}
@@ -3668,11 +3666,14 @@
*/
- (void)windowWillClose:(NSNotification *)aNotification
{
+ if ([[[SPNavigatorController sharedNavigatorController] window] isVisible]) {
+ [[SPNavigatorController sharedNavigatorController] removeConnection:[self connectionID]];
+ }
+
[mySQLConnection setDelegate:nil];
if (_isConnected) [self closeConnection];
else [connectionController cancelConnection];
if ([[[SPQueryController sharedQueryController] window] isVisible]) [self toggleConsole:self];
- if ([[[SPNavigatorController sharedNavigatorController] window] isVisible]) [self updateNavigator:self];
[createTableSyntaxWindow orderOut:nil];
[[NSNotificationCenter defaultCenter] removeObserver:self];
}