Paused torrents can now be rechecked

This commit is contained in:
Christophe Dumez
2010-01-20 18:06:56 +00:00
parent c9c627dec2
commit 7d9caad31e
6 changed files with 229 additions and 198 deletions

View File

@@ -760,8 +760,9 @@ void TransferListWidget::recheckSelectedTorrents() {
foreach(const QModelIndex &index, selectedIndexes){
QString hash = getHashFromRow(mapToSource(index).row());
QTorrentHandle h = BTSession->getTorrentHandle(hash);
if(h.is_valid() && h.has_metadata())
h.force_recheck();
if(h.is_valid()) {
BTSession->recheckTorrent(h.hash());
}
}
}