Browse Source

BUGFIX: Display the torrent that are being checked as 'checking' in seeding list

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
39feb335a4
  1. 1
      TODO
  2. 12
      src/FinishedTorrents.cpp

1
TODO

@ -80,3 +80,4 @@ beta5->beta6 changelog:
- BUGFIX: Prevent downloadFromUrl flooding - BUGFIX: Prevent downloadFromUrl flooding
- BUGFIX: Made finished list context menu more similar to the download list one - BUGFIX: Made finished list context menu more similar to the download list one
- BUGFIX: Fixed Pause/Start action in lists context menus - BUGFIX: Fixed Pause/Start action in lists context menus
- BUGFIX: Display the torrent that are being checked as 'checking' in seeding list

12
src/FinishedTorrents.cpp

@ -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.));
} }
} }

Loading…
Cancel
Save