From 51c4a0d8d05a1464c2bd31deb9e119ffe34548ad 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 e636bc16e..e83fd9e9a 100644 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -930,7 +930,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(); @@ -1119,7 +1119,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();