mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-06 05:01:25 -07:00
- Added some debug
- On torrent completion, save its fastresume data *AFTER* it was moved to final directory to avoid big problems (oops)
This commit is contained in:
parent
66db20cb47
commit
04cbd91f04
2 changed files with 2 additions and 1 deletions
|
@ -347,6 +347,7 @@ void FinishedTorrents::forceRecheck(){
|
|||
if(index.column() == F_NAME){
|
||||
QString hash = finishedListModel->data(finishedListModel->index(index.row(), F_HASH)).toString();
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
qDebug("Forcing recheck for torrent %s", hash.toUtf8().data());
|
||||
h.force_recheck();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1140,7 +1140,6 @@ void bittorrent::readAlerts() {
|
|||
QFile finished_file(misc::qBittorrentPath()+"BT_backup"+QDir::separator()+hash+".finished");
|
||||
finished_file.open(QIODevice::WriteOnly | QIODevice::Text);
|
||||
finished_file.close();
|
||||
h.save_resume_data();
|
||||
// Move to download directory if necessary
|
||||
if(!defaultTempPath.isEmpty()) {
|
||||
// Check if directory is different
|
||||
|
@ -1150,6 +1149,7 @@ void bittorrent::readAlerts() {
|
|||
h.move_storage(save_dir.path());
|
||||
}
|
||||
}
|
||||
h.save_resume_data();
|
||||
qDebug("Received finished alert for %s", h.name().toUtf8().data());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue