* Reworked how hashing is queued, state must 1 and removed the

set_hash_failed hacks when closing, etc.

* Changed the attributes of blocks in transfer view.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@727 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2006-06-21 22:14:10 +00:00
parent d2fc993514
commit 70eacfe738
10 changed files with 75 additions and 95 deletions
+10 -20
View File
@@ -81,34 +81,24 @@ WindowDownloadTransferList::redraw() {
char id;
chtype attr = A_NORMAL;
if (bItr->transfers()->size() >= 1) {
if (bItr->is_finished()) {
attr = A_REVERSE;
id = key_id(bItr->leader()->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)
attr = A_BOLD;
} else if (bItr->is_transfering()) {
attr = A_BOLD;
id = key_id(bItr->leader()->const_peer_info());
} else if (bItr->queued()->size() >= 1) {
id = key_id(bItr->queued()->back()->const_peer_info());
if (bItr->queued()->size() > 1)
attr = A_BOLD;
} else if (bItr->is_finished()) {
// Temporary until we fix the code so transfers are kept
// around.
id = '*';
id = std::tolower(key_id(bItr->queued()->back()->const_peer_info()));
} else {
id = '.';
}
if (bItr->size_all() > 1)
attr |= A_UNDERLINE;
m_canvas->print_char(attr | id);
}
}