From c1af948649c373c1247836ca1089066a11fc9e2a Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 9 Oct 2010 15:04:15 +0000 Subject: [PATCH] Fix issues introduced recently related to torrent completion --- src/bittorrent.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 49bff2681..f21f951c1 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -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);