diff --git a/AppKit/CPWindow/CPWindow.j b/AppKit/CPWindow/CPWindow.j index a86734ba5..2fc8a9c5c 100644 --- a/AppKit/CPWindow/CPWindow.j +++ b/AppKit/CPWindow/CPWindow.j @@ -1110,7 +1110,7 @@ CPTexturedBackgroundWindowMask */ - (void)setContentView:(CPView)aView { - if (_contentView) + if (_contentView && _contentView !== aView) [_contentView removeFromSuperview]; var bounds = CGRectMake(0.0, 0.0, CGRectGetWidth(_frame), CGRectGetHeight(_frame));