* Second part of reworking how multiple downloads of the same chunk is

handled.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@721 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-06-15 00:46:13 +00:00
parent b3b4acaad8
commit c95eb62802
2 changed files with 13 additions and 6 deletions
+12 -5
View File
@@ -82,20 +82,27 @@ WindowDownloadTransferList::redraw() {
chtype attr = A_NORMAL;
if (bItr->transfers()->size() >= 1) {
attr = A_BOLD;
id = key_id(bItr->transfers()->back()->const_peer_info());
if (bItr->leader() != NULL) {
attr = A_REVERSE;
id = key_id(bItr->leader()->const_peer_info());
} else {
attr = A_REVERSE | A_UNDERLINE;
id = key_id(bItr->transfers()->back()->const_peer_info());
}
if (bItr->transfers()->size() > 1)
id = std::tolower(id);
attr = A_BOLD;
} else if (bItr->queued()->size() >= 1) {
id = key_id(bItr->queued()->back()->const_peer_info());
if (bItr->queued()->size() > 1)
id = std::tolower(id);
attr = A_BOLD;
} else if (bItr->is_finished()) {
// Temporary until
// Temporary until we fix the code so transfers are kept
// around.
id = '*';
} else {