mirror of
https://github.com/transmission/transmission
synced 2025-01-30 19:03:04 +00:00
Fixes crash when the user is always asked for the download location
This commit is contained in:
parent
60f10df45e
commit
8c8b2dbc19
1 changed files with 9 additions and 3 deletions
|
@ -34,9 +34,15 @@
|
|||
fSizeString = [NSString stringWithFormat: @" (%@)",
|
||||
[NSString stringForFileSize: stat->info.totalSize]];
|
||||
|
||||
fIcon = [[NSWorkspace sharedWorkspace] iconForFile:
|
||||
[[NSString stringWithUTF8String: stat->folder]
|
||||
stringByAppendingPathComponent: fNameString]];
|
||||
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 = @"";
|
||||
|
|
Loading…
Reference in a new issue