aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
Diffstat (limited to 'Source')
-rw-r--r--Source/SPAppController.m1
-rw-r--r--Source/SPHistoryController.m4
-rw-r--r--Source/SPWindowController.m4
3 files changed, 6 insertions, 3 deletions
diff --git a/Source/SPAppController.m b/Source/SPAppController.m
index 85ad93a2..8635fb29 100644
--- a/Source/SPAppController.m
+++ b/Source/SPAppController.m
@@ -395,6 +395,7 @@
}
[newWindowController selectTabAtIndex:[[window objectForKey:@"selectedTabIndex"] intValue]];
+ [newWindowController setHideForSingleTab:YES];
}
diff --git a/Source/SPHistoryController.m b/Source/SPHistoryController.m
index 9e7f20da..8478c6b4 100644
--- a/Source/SPHistoryController.m
+++ b/Source/SPHistoryController.m
@@ -93,6 +93,8 @@
if ([history count] && historyPosition > 0) backEnabled = YES;
if ([history count] && historyPosition + 1 < [history count]) forwardEnabled = YES;
+ if(!historyControl) return;
+
[historyControl setEnabled:backEnabled forSegment:0];
[historyControl setEnabled:forwardEnabled forSegment:1];
@@ -229,7 +231,7 @@
- (void) toolbarWillAddItem:(NSNotification *)aNotification {
if ([[[[aNotification userInfo] objectForKey:@"item"] itemIdentifier] isEqualToString:SPMainToolbarHistoryNavigation]) {
toolbarItemVisible = YES;
- [self performSelector:@selector(updateToolbarItem) withObject:nil afterDelay:0.1];
+ [self performSelectorOnMainThread:@selector(updateToolbarItem) withObject:nil waitUntilDone:YES];
}
}
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m
index 5f8e34cd..0cfe9e8e 100644
--- a/Source/SPWindowController.m
+++ b/Source/SPWindowController.m
@@ -654,8 +654,8 @@
* or the selected table document supports the selector.
*/
- (BOOL) respondsToSelector:(SEL)theSelector
-{
- return ([super respondsToSelector:theSelector] || [selectedTableDocument respondsToSelector:theSelector]);
+{
+ return ([super respondsToSelector:theSelector] || (selectedTableDocument && [selectedTableDocument respondsToSelector:theSelector]));
}
/**