From: <ho...@us...> - 2015-03-24 00:36:07
|
Revision: 8727 http://sourceforge.net/p/skim-app/code/8727 Author: hofman Date: 2015-03-24 00:36:04 +0000 (Tue, 24 Mar 2015) Log Message: ----------- only update background color when there is a window Modified Paths: -------------- trunk/SKThumbnailTableView.m trunk/SKTocOutlineView.m Modified: trunk/SKThumbnailTableView.m =================================================================== --- trunk/SKThumbnailTableView.m 2015-03-24 00:33:09 UTC (rev 8726) +++ trunk/SKThumbnailTableView.m 2015-03-24 00:36:04 UTC (rev 8727) @@ -158,7 +158,8 @@ - (void)viewDidMoveToWindow { [super viewDidMoveToWindow]; - [self handleKeyOrMainStateChanged:nil]; + if ([self window]) + [self handleKeyOrMainStateChanged:nil]; } - (void)handleScrollerWillScroll:(NSNotification *)note { Modified: trunk/SKTocOutlineView.m =================================================================== --- trunk/SKTocOutlineView.m 2015-03-24 00:33:09 UTC (rev 8726) +++ trunk/SKTocOutlineView.m 2015-03-24 00:36:04 UTC (rev 8727) @@ -158,7 +158,8 @@ - (void)viewDidMoveToWindow { [super viewDidMoveToWindow]; - [self handleKeyOrMainStateChanged:nil]; + if ([self window]) + [self handleKeyOrMainStateChanged:nil]; } - (void)removeTrackingAreas { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |