mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
- Fix crash when applying torrent files priorities (if libtorrent-rasterbar has debug enabled)
This commit is contained in:
parent
92e569fc36
commit
fe3a6b8b57
1 changed files with 2 additions and 1 deletions
|
@ -858,6 +858,7 @@ void bittorrent::loadFilesPriorities(QTorrentHandle &h) {
|
||||||
qDebug("Setting file piority to %d", priority);
|
qDebug("Setting file piority to %d", priority);
|
||||||
v.push_back(priority);
|
v.push_back(priority);
|
||||||
}
|
}
|
||||||
|
if(v.size() == (unsigned int)h.num_files())
|
||||||
h.prioritize_files(v);
|
h.prioritize_files(v);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue