From ab4ffba987aa67a7513c58b641903f4d881c8197 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Thu, 26 Nov 2009 02:26:51 +0000 Subject: [PATCH] add a placeholder magnet link icon --- macosx/Torrent.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/macosx/Torrent.m b/macosx/Torrent.m index 6fd0c5242..3dd176db7 100644 --- a/macosx/Torrent.m +++ b/macosx/Torrent.m @@ -555,6 +555,10 @@ int trashDataFile(const char * filename) - (NSImage *) icon { + if ([self isMagnet]) + return [NSImage imageNamed: NSImageNameNetwork]; //placeholder + + #warning replace 'fldr' stuff with NSImageNameFolder on 10.6 if (!fIcon) fIcon = [[[NSWorkspace sharedWorkspace] iconForFileType: [self isFolder] ? NSFileTypeForHFSTypeCode('fldr') : [[self name] pathExtension]] retain];