From c800a0a6b5005217d8cdfee3b71245805d6e54eb Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 1 May 2010 08:12:42 +0000 Subject: [PATCH] Fix moving torrent from temp dir when they are complete --- src/bittorrent.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 1827ffa8e..216d02264 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -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("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(); }