From 5d4ecbcecf9f7a7a89001caa5961b43ed30ed53f Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Sun, 7 Mar 2010 02:46:49 +0000 Subject: [PATCH] #3017 fix the pieces bar for magnet links --- macosx/TorrentCell.m | 8 ++++++++ 1 file changed, 8 insertions(+) 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];