aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPWindowController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Source/SPWindowController.m')
-rw-r--r--Source/SPWindowController.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/SPWindowController.m b/Source/SPWindowController.m
index 0666f1a7..58afeb16 100644
--- a/Source/SPWindowController.m
+++ b/Source/SPWindowController.m
@@ -90,6 +90,12 @@ enum {
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tabDragStarted:) name:PSMTabDragDidBeginNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(tabDragStopped:) name:PSMTabDragDidEndNotification object:nil];
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_updateLineHidingViewState) name:SPWindowToolbarDidToggleNotification object:nil];
+
+ // Because we are a document-based app we automatically adopt window restoration on 10.7+.
+ // However that causes a race condition with our own window setup code.
+ // Remove this when we actually support restoration.
+ if([[self window] respondsToSelector:@selector(setRestorable:)])
+ [[self window] setRestorable:NO];
}
#pragma mark -