From: Mitchell Livingston Date: Sun, 7 Mar 2010 02:46:49 +0000 (+0000) Subject: #3017 fix the pieces bar for magnet links X-Git-Tag: 2.00~376 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=5d4ecbcecf9f7a7a89001caa5961b43ed30ed53f;p=transmission #3017 fix the pieces bar for magnet links --- diff --git a/macosx/TorrentCell.m b/macosx/TorrentCell.m index 9a7c404fd..b1f8af114 100644 --- a/macosx/TorrentCell.m +++ b/macosx/TorrentCell.m @@ -571,6 +571,14 @@ { Torrent * torrent = [self representedObject]; + //fill an all-white bar for magnet links + if ([torrent isMagnet]) + { + [[NSColor whiteColor] set]; + NSRectFill(barRect); + return; + } + NSInteger pieceCount = MIN([torrent pieceCount], MAX_PIECES); float * piecesPercent = malloc(pieceCount * sizeof(float)); [torrent getAmountFinished: piecesPercent size: pieceCount];