Skip to content

Commit

Permalink
Calculate a default key view loop for windows loading from cibs even …
Browse files Browse the repository at this point in the history
…if autorecalculatesKeyViewLoop is NO.
  • Loading branch information
aljungberg committed Mar 8, 2012
1 parent 757a2bf commit 94a58c8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AppKit/CPWindow/CPWindow.j
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,10 @@ CPTexturedBackgroundWindowMask
- (void)awakeFromCib
{
_keyViewLoopIsDirty = ![self _hasKeyViewLoop];
// If no key view loop has been specified by hand, and we are not intending to auto recalculate,
// set up a default key view loop.
if (_keyViewLoopIsDirty && ![self autorecalculatesKeyViewLoop])
[self recalculateKeyViewLoop];
}

- (void)_setWindowView:(CPView)aWindowView
Expand Down

0 comments on commit 94a58c8

Please sign in to comment.