mirror of
https://github.com/transmission/transmission
synced 2025-02-03 13:03:50 +00:00
Display "info not available" in file table.
This commit is contained in:
parent
549e375b95
commit
eb026f1528
1 changed files with 12 additions and 7 deletions
|
@ -213,16 +213,21 @@
|
|||
//set file table
|
||||
[fFiles removeAllObjects];
|
||||
|
||||
Torrent * torrent;
|
||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
[fFiles addObjectsFromArray: [torrent fileList]];
|
||||
if (numberSelected > 0)
|
||||
{
|
||||
Torrent * torrent;
|
||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
||||
while ((torrent = [enumerator nextObject]))
|
||||
[fFiles addObjectsFromArray: [torrent fileList]];
|
||||
|
||||
[fFileTableStatusField setStringValue: [NSString stringWithFormat: @"%d file%s", [fFiles count],
|
||||
[fFiles count] == 1 ? "" : "s"]];
|
||||
}
|
||||
else
|
||||
[fFileTableStatusField setStringValue: @"info not available"];
|
||||
|
||||
[fFileTable deselectAll: nil];
|
||||
[fFileTable reloadData];
|
||||
|
||||
[fFileTableStatusField setStringValue: [NSString stringWithFormat: @"%d file%s", [fFiles count],
|
||||
[fFiles count] == 1 ? "" : "s"]];
|
||||
}
|
||||
|
||||
- (void) updateInfoStats
|
||||
|
|
Loading…
Reference in a new issue