mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-30 11:38:50 -07:00
- Torrent Addition Dialog: File priorities were not taken into consideration (Thanks Mariusz)
This commit is contained in:
parent
d2dd29c35a
commit
abbbf1e562
3 changed files with 14 additions and 11 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue