From c9f86ff4e3a31a575765115e5133c3816885df38 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Wed, 26 Sep 2012 16:55:34 +0000 Subject: [PATCH] #5053 Fix crash on 10.6 --- macosx/StatusBarView.m | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/macosx/StatusBarView.m b/macosx/StatusBarView.m index aafdb9988..e3d4a91ee 100644 --- a/macosx/StatusBarView.m +++ b/macosx/StatusBarView.m @@ -139,10 +139,13 @@ NSRectFillListWithColors(gridRects, colorRects, count); - [fNoiseImage drawInRect: rect - fromRect: [self convertRectToBacking: rect] - operation: NSCompositeSourceOver - fraction: 0.12]; + if (fNoiseImage) { + NSAssert([NSApp isOnLionOrBetter], @"we have a noise image, but we're on 10.6"); //https://trac.transmissionbt.com/ticket/5053 + [fNoiseImage drawInRect: rect + fromRect: [self convertRectToBacking: rect] + operation: NSCompositeSourceOver + fraction: 0.12]; + } } @end -- 2.40.0