From 8a12382f1f187ea94eb4f0933d6dd2103bb11896 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 15 Sep 2012 15:53:33 +0300 Subject: [PATCH] Fix issue with temporary directory not being taken into consideration Closes issue #94. --- src/qtlibtorrent/qbtsession.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index ed623fe79..4d5bdb702 100755 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -938,7 +938,7 @@ QTorrentHandle QBtSession::addMagnetUri(QString magnet_uri, bool resumed, bool f } if (savePath.isEmpty()) savePath = getSavePath(hash, false); - if (!defaultTempPath.isEmpty() && !TorrentPersistentData::isSeed(hash) && resumed) { + if (!defaultTempPath.isEmpty() && !TorrentPersistentData::isSeed(hash) && !resumed) { qDebug("addMagnetURI: Temp folder is enabled."); QString torrent_tmp_path = defaultTempPath.replace("\\", "/"); p.save_path = torrent_tmp_path.toUtf8().constData(); @@ -1127,7 +1127,7 @@ QTorrentHandle QBtSession::addTorrent(QString path, bool fromScanDir, QString fr } else { savePath = getSavePath(hash, fromScanDir, path); } - if (!defaultTempPath.isEmpty() && !TorrentPersistentData::isSeed(hash) && resumed) { + if (!defaultTempPath.isEmpty() && !TorrentPersistentData::isSeed(hash) && !resumed) { qDebug("addTorrent::Temp folder is enabled."); QString torrent_tmp_path = defaultTempPath.replace("\\", "/"); p.save_path = torrent_tmp_path.toUtf8().constData();