- Queueing system should work fine now (port is complete, needs testing)

This commit is contained in:
Christophe Dumez 2008-11-02 11:43:20 +00:00
commit 9b67807926
11 changed files with 105 additions and 181 deletions

View file

@ -501,7 +501,7 @@ void DownloadingTorrents::updateDlList() {
// Update Priority
if(BTSession->isQueueingEnabled()) {
DLListModel->setData(DLListModel->index(row, PRIORITY), QVariant((int)BTSession->getDlTorrentPriority(hash)));
if(h.is_paused() && BTSession->isDownloadQueued(hash)) {
if(BTSession->isTorrentQueued(hash)) {
DLListModel->setData(DLListModel->index(row, NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/queued.png"))), Qt::DecorationRole);
if(!downloadList->isColumnHidden(ETA)) {
DLListModel->setData(DLListModel->index(row, ETA), QVariant((qlonglong)-1));
@ -510,7 +510,7 @@ void DownloadingTorrents::updateDlList() {
}
}
// No need to update a paused torrent
if(h.is_paused()) continue;
if(h.is_paused() || h.is_queued()) continue;
// Parse download state
// Setting download state
switch(h.state()) {