Browse Source

- fixed a bug with full allocation mode, introduced yesterday

adaptive-webui-19844
Christophe Dumez 18 years ago
parent
commit
9f3b9da24a
  1. 4
      src/bittorrent.cpp

4
src/bittorrent.cpp

@ -254,6 +254,10 @@ void bittorrent::addTorrent(const QString& path, bool fromScanDir, bool onStartu
// Adding files to bittorrent session // Adding files to bittorrent session
if(hasFilteredFiles(hash)){ if(hasFilteredFiles(hash)){
h = s->add_torrent(t, fs::path((const char*)savePath.toUtf8()), resume_data, false); 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"); qDebug("Full allocation mode");
}else{ }else{
h = s->add_torrent(t, fs::path((const char*)savePath.toUtf8()), resume_data, true); h = s->add_torrent(t, fs::path((const char*)savePath.toUtf8()), resume_data, true);

Loading…
Cancel
Save