diff --git a/src/bittorrent.cpp b/src/bittorrent.cpp index 1afcb2a73..f2752ecea 100644 --- a/src/bittorrent.cpp +++ b/src/bittorrent.cpp @@ -858,7 +858,8 @@ void bittorrent::loadFilesPriorities(QTorrentHandle &h) { qDebug("Setting file piority to %d", priority); v.push_back(priority); } - h.prioritize_files(v); + if(v.size() == (unsigned int)h.num_files()) + h.prioritize_files(v); } float bittorrent::getRealRatio(QString hash) const{