|
|
@ -221,9 +221,21 @@ void FinishedTorrents::updateFinishedList(){ |
|
|
|
emit torrentMovedFromFinishedList(hash); |
|
|
|
emit torrentMovedFromFinishedList(hash); |
|
|
|
continue; |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if(h.state() == torrent_status::checking_files){ |
|
|
|
|
|
|
|
if(BTSession->getTorrentsToPauseAfterChecking().indexOf(hash) == -1) { |
|
|
|
|
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/time.png"))), Qt::DecorationRole); |
|
|
|
|
|
|
|
setRowColor(row, QString::fromUtf8("grey")); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Q_ASSERT(h.progress() <= 1. && h.progress() >= 0.); |
|
|
|
|
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_PROGRESS), QVariant((double)h.progress())); |
|
|
|
|
|
|
|
continue; |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
setRowColor(row, QString::fromUtf8("orange")); |
|
|
|
|
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_NAME), QVariant(QIcon(QString::fromUtf8(":/Icons/skin/seeding.png"))), Qt::DecorationRole); |
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_UPSPEED), QVariant((double)h.upload_payload_rate())); |
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_UPSPEED), QVariant((double)h.upload_payload_rate())); |
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_SEEDSLEECH), QVariant(misc::toQString(h.num_seeds(), true)+"/"+misc::toQString(h.num_peers() - h.num_seeds(), true))); |
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_SEEDSLEECH), QVariant(misc::toQString(h.num_seeds(), true)+"/"+misc::toQString(h.num_peers() - h.num_seeds(), true))); |
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_RATIO), QVariant(misc::toQString(BTSession->getRealRatio(hash)))); |
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_RATIO), QVariant(misc::toQString(BTSession->getRealRatio(hash)))); |
|
|
|
|
|
|
|
finishedListModel->setData(finishedListModel->index(row, F_PROGRESS), QVariant((double)1.)); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|