Fix issues introduced recently related to torrent completion

This commit is contained in:
Christophe Dumez
2010-10-09 15:04:15 +00:00
parent 36ad3df9e7
commit c1af948649

View File

@@ -2048,14 +2048,14 @@ void Bittorrent::addConsoleMessage(QString msg, QString) {
}
}
}
}
// Move to download directory if necessary
if(!defaultTempPath.isEmpty()) {
// Check if directory is different
const QDir current_dir(h.save_path());
const QDir save_dir(getSavePath(hash));
if(current_dir != save_dir) {
h.move_storage(save_dir.absolutePath());
// Move to download directory if necessary
if(!defaultTempPath.isEmpty()) {
// Check if directory is different
const QDir current_dir(h.save_path());
const QDir save_dir(getSavePath(hash));
if(current_dir != save_dir) {
h.move_storage(save_dir.absolutePath());
}
}
// Remember finished state
TorrentPersistentData::saveSeedStatus(h);