placeholder of N/A in info window

This commit is contained in:
Mitchell Livingston 2006-08-08 02:36:02 +00:00
parent 9586b1fc41
commit 5a3352be5c
4 changed files with 6 additions and 6 deletions

View File

@ -7,7 +7,7 @@
<key>IBEditorPositions</key>
<dict>
<key>153</key>
<string>95 422 582 291 0 0 1152 842 </string>
<string>285 433 582 291 0 0 1152 842 </string>
<key>28</key>
<string>58 372 582 290 0 0 1152 842 </string>
<key>41</key>

View File

@ -221,18 +221,18 @@
*/
int seeders = [torrent seeders], leechers = [torrent leechers];
[fSeedersField setStringValue: seeders < 0 ?
@"N/A" : [NSString stringWithInt: seeders]];
@"" : [NSString stringWithInt: seeders]];
[fLeechersField setStringValue: leechers < 0 ?
@"N/A" : [NSString stringWithInt: leechers]];
@"" : [NSString stringWithInt: leechers]];
BOOL active = [torrent isActive];
[fConnectedPeersField setStringValue: active ? [NSString
stringWithInt: [torrent totalPeers]] : @"N/A"];
stringWithInt: [torrent totalPeers]] : @""];
[fDownloadingFromField setStringValue: active ? [NSString
stringWithInt: [torrent peersUploading]] : @"N/A"];
stringWithInt: [torrent peersUploading]] : @""];
[fUploadingToField setStringValue: active ? [NSString
stringWithInt: [torrent peersDownloading]] : @"N/A"];
stringWithInt: [torrent peersDownloading]] : @""];
[fRatioField setStringValue: [NSString stringForRatioWithDownload:
downloadedTotal upload: uploadedTotal]];