1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-01-31 03:12:44 +00:00

Fixes crash when the user is always asked for the download location

This commit is contained in:
Eric Petit 2006-01-31 04:19:31 +00:00
parent 60f10df45e
commit 8c8b2dbc19

View file

@ -34,9 +34,15 @@
fSizeString = [NSString stringWithFormat: @" (%@)",
[NSString stringForFileSize: stat->info.totalSize]];
if( stat->folder )
fIcon = [[NSWorkspace sharedWorkspace] iconForFile:
[[NSString stringWithUTF8String: stat->folder]
stringByAppendingPathComponent: fNameString]];
else
/* XXX The torrent is still being opened, the destination hasn't
been chosen yet. It shouldn't be added to the table view so
soon */
fIcon = [[NSWorkspace sharedWorkspace] iconForFile: @"/System"];
[fIcon setFlipped: YES];
fTimeString = @"";