Skip to content


Browse files Browse the repository at this point in the history
Fix one case of "SSH input fields cut off"
When the last selected favorite was "Quick Connect" with SSH, on the next launch SSH would be re-selected, but the fields other than SSH Host would be cut off.

This was caused by a race condition between our window setup code and Cocoas window restoration code. Solved by disabling window restoration for now (didn't really work for us  anyway).
  • Loading branch information
dmoagx committed Feb 8, 2015
1 parent 19a1c9f commit b1e32f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Source/SPWindowController.m
Expand Up @@ -90,6 +90,12 @@ - (void)awakeFromNib
[[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 -
Expand Down

0 comments on commit b1e32f6

Please sign in to comment.