mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Fix moving torrent from temp dir when they are complete
This commit is contained in:
parent
5675c045ae
commit
c800a0a6b5
1 changed files with 2 additions and 1 deletions
|
@ -1956,7 +1956,8 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
|
||||||
qDebug("Torrent moved from %s to %s", qPrintable(old_save_path), qPrintable(new_save_path));
|
qDebug("Torrent moved from %s to %s", qPrintable(old_save_path), qPrintable(new_save_path));
|
||||||
qDebug("Attempting to remove %s", qPrintable(old_save_path));
|
qDebug("Attempting to remove %s", qPrintable(old_save_path));
|
||||||
QDir().rmpath(old_save_path);
|
QDir().rmpath(old_save_path);
|
||||||
TorrentPersistentData::saveSavePath(h.hash(), new_save_path);
|
if(new_save_path != defaultTempPath)
|
||||||
|
TorrentPersistentData::saveSavePath(h.hash(), new_save_path);
|
||||||
emit savePathChanged(h);
|
emit savePathChanged(h);
|
||||||
//h.force_recheck();
|
//h.force_recheck();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue