mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
- Torrent is moved to temp dir on startup if it is supposed to be complete but data could not be found
This commit is contained in:
parent
8e8e7cd3e7
commit
64806cb199
1 changed files with 9 additions and 0 deletions
|
@ -1255,6 +1255,15 @@ void bittorrent::readAlerts() {
|
|||
if(h.is_valid()){
|
||||
QString hash = h.hash();
|
||||
qDebug("%s have just finished checking", hash.toLocal8Bit().data());
|
||||
// Move to temp directory if necessary
|
||||
if(!h.is_seed() && !defaultTempPath.isEmpty()) {
|
||||
// Check if directory is different
|
||||
QDir current_dir(h.save_path());
|
||||
QDir save_dir(getSavePath(h.hash()));
|
||||
if(current_dir == save_dir) {
|
||||
h.move_storage(defaultTempPath);
|
||||
}
|
||||
}
|
||||
emit torrentFinishedChecking(h);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue