mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-22 20:44:15 +00:00
BUGFIX: Display the torrent that are being checked as 'checking' in seeding list
This commit is contained in:
parent
b90012e431
commit
39feb335a4
1
TODO
1
TODO
@ -80,3 +80,4 @@ beta5->beta6 changelog:
|
||||
- BUGFIX: Prevent downloadFromUrl flooding
|
||||
- BUGFIX: Made finished list context menu more similar to the download list one
|
||||
- BUGFIX: Fixed Pause/Start action in lists context menus
|
||||
- BUGFIX: Display the torrent that are being checked as 'checking' in seeding list
|
||||
|
@ -221,9 +221,21 @@ void FinishedTorrents::updateFinishedList(){
|
||||
emit torrentMovedFromFinishedList(hash);
|
||||
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_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_PROGRESS), QVariant((double)1.));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user