1
0
mirror of https://github.com/d47081/qBittorrent.git synced 2025-01-10 14:57:52 +00:00

- Fix crash when applying torrent files priorities (if libtorrent-rasterbar has debug enabled)

This commit is contained in:
Christophe Dumez 2009-10-30 13:07:13 +00:00
parent 92e569fc36
commit fe3a6b8b57

View File

@ -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{