mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-18 22:47:21 -06:00
- Disabled file prioritizing for seeding torrents
- Added file prioritizing to Web UI
This commit is contained in:
@@ -470,7 +470,9 @@ 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());
|
||||
h.prioritize_files(v);
|
||||
}
|
||||
|
||||
@@ -528,6 +530,7 @@ void QTorrentHandle::move_storage(QString new_path) const {
|
||||
|
||||
void QTorrentHandle::file_priority(int index, int priority) const {
|
||||
Q_ASSERT(h.is_valid());
|
||||
if(is_seed()) return;
|
||||
h.file_priority(index, priority);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user