mirror of
https://github.com/transmission/transmission
synced 2025-03-17 17:25:32 +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: @" (%@)",
|
fSizeString = [NSString stringWithFormat: @" (%@)",
|
||||||
[NSString stringForFileSize: stat->info.totalSize]];
|
[NSString stringForFileSize: stat->info.totalSize]];
|
||||||
|
|
||||||
fIcon = [[NSWorkspace sharedWorkspace] iconForFile:
|
if( stat->folder )
|
||||||
[[NSString stringWithUTF8String: stat->folder]
|
fIcon = [[NSWorkspace sharedWorkspace] iconForFile:
|
||||||
stringByAppendingPathComponent: fNameString]];
|
[[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];
|
[fIcon setFlipped: YES];
|
||||||
|
|
||||||
fTimeString = @"";
|
fTimeString = @"";
|
||||||
|
|
Loading…
Add table
Reference in a new issue