Calculate a default key view loop for windows loading from cibs even if autorecalculatesKeyViewLoop is NO.

This commit is contained in:
Alexander Ljungberg committed 2012-03-08 12:23:05 +00:00
1 parent 757a2bf400
commit 94a58c810e
1 file changed
+4
+4
View File
@@ -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