- Torrent Addition Dialog: File priorities were not taken into consideration (Thanks Mariusz)

This commit is contained in:
Christophe Dumez 2009-12-08 17:20:28 +00:00
parent d2dd29c35a
commit abbbf1e562
3 changed files with 14 additions and 11 deletions

View file

@ -472,7 +472,8 @@ void QTorrentHandle::set_max_connections(int val) {
void QTorrentHandle::prioritize_files(std::vector<int> v) {
// Does not do anything for seeding torrents
Q_ASSERT(h.is_valid());
Q_ASSERT(v.size() == (unsigned int)h.get_torrent_info().num_files());
if(v.size() != (unsigned int)h.get_torrent_info().num_files())
return;
h.prioritize_files(v);
}