BUGFIX: Fix torrent moving after completion feature

This commit is contained in:
Christophe Dumez
2010-05-01 08:14:30 +00:00
parent 1ae460bc67
commit 984e7c7c7b
2 changed files with 3 additions and 1 deletions

View File

@@ -1971,7 +1971,8 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
qDebug("Torrent moved from %s to %s", qPrintable(old_save_path), qPrintable(new_save_path));
qDebug("Attempting to remove %s", qPrintable(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);
//h.force_recheck();
}