Fix other temp path issues

This commit is contained in:
Christophe Dumez
2010-07-17 21:35:00 +00:00
parent 5be2624cb1
commit 8f5bd2bc9f
3 changed files with 26 additions and 5 deletions

View File

@@ -599,6 +599,8 @@ void QTorrentHandle::force_recheck() const {
void QTorrentHandle::move_storage(QString new_path) const {
Q_ASSERT(h.is_valid());
if(QDir(save_path()) == QDir(new_path)) return;
TorrentPersistentData::setPreviousSavePath(hash(), save_path());
h.move_storage(new_path.toLocal8Bit().constData());
}