1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-23 04:54:18 +00:00

- fixed a bug with full allocation mode, introduced yesterday

This commit is contained in:
Christophe Dumez 2007-07-05 00:07:45 +00:00
parent 18ec98c3fb
commit 9f3b9da24a

View File

@ -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);