From c8753c96db095ee294a08a140cde10ce892b68da Mon Sep 17 00:00:00 2001 From: sledgehammer999 Date: Wed, 26 Dec 2012 19:31:02 +0200 Subject: [PATCH] Optimize the addittion of huge torrents. Fixes issue #288. --- src/qtlibtorrent/qbtsession.cpp | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/qtlibtorrent/qbtsession.cpp b/src/qtlibtorrent/qbtsession.cpp index da8334287..788759a0a 100755 --- a/src/qtlibtorrent/qbtsession.cpp +++ b/src/qtlibtorrent/qbtsession.cpp @@ -1270,20 +1270,11 @@ void QBtSession::loadTorrentTempData(QTorrentHandle &h, QString savePath, bool m // Update file names const QStringList files_path = TorrentTempData::getFilesPath(hash); bool force_recheck = false; + QDir base_dir(h.save_path()); if (files_path.size() == h.num_files()) { for (int i=0; i