Display "info not available" in file table.
This commit is contained in:
parent
549e375b95
commit
eb026f1528
|
@ -213,16 +213,21 @@
|
||||||
//set file table
|
//set file table
|
||||||
[fFiles removeAllObjects];
|
[fFiles removeAllObjects];
|
||||||
|
|
||||||
Torrent * torrent;
|
if (numberSelected > 0)
|
||||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
{
|
||||||
while ((torrent = [enumerator nextObject]))
|
Torrent * torrent;
|
||||||
[fFiles addObjectsFromArray: [torrent fileList]];
|
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 deselectAll: nil];
|
||||||
[fFileTable reloadData];
|
[fFileTable reloadData];
|
||||||
|
|
||||||
[fFileTableStatusField setStringValue: [NSString stringWithFormat: @"%d file%s", [fFiles count],
|
|
||||||
[fFiles count] == 1 ? "" : "s"]];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) updateInfoStats
|
- (void) updateInfoStats
|
||||||
|
|
Loading…
Reference in New Issue