From 9f3b9da24a1ff741ac648433c1e4a7ccbe70ccd5 Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Thu, 5 Jul 2007 00:07:45 +0000 Subject: [PATCH] - fixed a bug with full allocation mode, introduced yesterday --- src/bittorrent.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 14445bf0a..30f00b73a 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -254,6 +254,10 @@ void bittorrent::addTorrent(const QString& path, bool fromScanDir, bool onStartu // Adding files to bittorrent session if(hasFilteredFiles(hash)){ h = s->add_torrent(t, fs::path((const char*)savePath.toUtf8()), resume_data, false); + int index = fullAllocationModeList.indexOf(hash); + if(index == -1){ + fullAllocationModeList << hash; + } qDebug("Full allocation mode"); }else{ h = s->add_torrent(t, fs::path((const char*)savePath.toUtf8()), resume_data, true);