aboutsummaryrefslogtreecommitdiffstats
path: root/Frameworks
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2010-06-29 12:44:33 +0000
committerBibiko <bibiko@eva.mpg.de>2010-06-29 12:44:33 +0000
commit289a0c98b50b6da590b50a14969dfd986bab18c3 (patch)
tree588b6d7e3249223374400ef0baa8c33dd8c50cf2 /Frameworks
parent92fbb6abcc89c946b1565de862b59af016651fdb (diff)
downloadsequelpro-289a0c98b50b6da590b50a14969dfd986bab18c3.tar.gz
sequelpro-289a0c98b50b6da590b50a14969dfd986bab18c3.tar.bz2
sequelpro-289a0c98b50b6da590b50a14969dfd986bab18c3.zip
• made SP more robust against fast closing of tabs and windows
• setHideForSingleTab:YES after opening spfs session
Diffstat (limited to 'Frameworks')
-rw-r--r--Frameworks/PSMTabBar/PSMTabBarControl.m4
1 files changed, 2 insertions, 2 deletions
diff --git a/Frameworks/PSMTabBar/PSMTabBarControl.m b/Frameworks/PSMTabBar/PSMTabBarControl.m
index 1023444d..d361364e 100644
--- a/Frameworks/PSMTabBar/PSMTabBarControl.m
+++ b/Frameworks/PSMTabBar/PSMTabBarControl.m
@@ -942,14 +942,14 @@
//send the delegate messages
if (_isHidden) {
- if ([[self delegate] respondsToSelector:@selector(tabView:tabBarDidHide:)]) {
+ if ([self delegate] && [[self delegate] respondsToSelector:@selector(tabView:tabBarDidHide:)]) {
[[self delegate] tabView:[self tabView] tabBarDidHide:self];
}
} else {
[self addSubview:_overflowPopUpButton];
[self addSubview:_addTabButton];
- if ([[self delegate] respondsToSelector:@selector(tabView:tabBarDidUnhide:)]) {
+ if ([self delegate] && [[self delegate] respondsToSelector:@selector(tabView:tabBarDidUnhide:)]) {
[[self delegate] tabView:[self tabView] tabBarDidUnhide:self];
}
}