aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPDatabaseDocument.m
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-08-13 08:50:09 +0000
committerBibiko <bibiko@eva.mpg.de>2010-08-13 08:50:09 +0000
commit9d5aa655c43de33b8617f8fedd5b948907f547cb (patch)
tree55af8ccb117def34485b55028df9c7a8bd9bfc9c /Source/SPDatabaseDocument.m
parentf26b9a4fa9adc76e34ca440c3119bd8f1359f967 (diff)
downloadsequelpro-9d5aa655c43de33b8617f8fedd5b948907f547cb.tar.gz
sequelpro-9d5aa655c43de33b8617f8fedd5b948907f547cb.tar.bz2
sequelpro-9d5aa655c43de33b8617f8fedd5b948907f547cb.zip
• Navigator
- make usage of only one tree - fixed "Button"-dummy - fixed refreshing of the tree data for first invocation - fixed tiny bits for possible crashes/exceptions due to threading
Diffstat (limited to 'Source/SPDatabaseDocument.m')
-rw-r--r--Source/SPDatabaseDocument.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/SPDatabaseDocument.m b/Source/SPDatabaseDocument.m
index c26bce66..45615c9f 100644
--- a/Source/SPDatabaseDocument.m
+++ b/Source/SPDatabaseDocument.m
@@ -1246,12 +1246,12 @@
{
BOOL isNavigatorVisible = [[[SPNavigatorController sharedNavigatorController] window] isVisible];
- if(!isNavigatorVisible) {
- [[SPNavigatorController sharedNavigatorController] updateEntriesForConnection:self];
- }
-
// Show or hide the navigator
[[[SPNavigatorController sharedNavigatorController] window] setIsVisible:(!isNavigatorVisible)];
+
+ if(!isNavigatorVisible)
+ [[SPNavigatorController sharedNavigatorController] updateEntriesForConnection:self];
+
}
- (IBAction)showNavigator:(id)sender