BUGFIX: Fix moving of a torrent to an unexisting directory

This commit is contained in:
Christophe Dumez
2010-10-17 15:16:25 +00:00
parent de04b47c29
commit 8047495b2e
2 changed files with 5 additions and 0 deletions

View File

@@ -2,6 +2,7 @@
- BUGFIX: Fix "torrent seeding after creation" feature
- BUGFIX: The properties panel data would sometimes not match the selected torrent
- BUGFIX: Fix detection of files at final destination when temp dir is used
- BUGFIX: Fix moving of a torrent to an unexisting directory
* Tue Oct 12 2010 - Christophe Dumez <chris@qbittorrent.org> - v2.4.5
- BUGFIX: Remember torrent completion date correctly

View File

@@ -629,6 +629,10 @@ 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());
// Create destination directory if necessary
// or move_storage() will fail...
QDir().mkpath(new_path);
// Actually move the storage
h.move_storage(new_path.toLocal8Bit().constData());
}