mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fix file prioritizing behavior. Priorities cannot be changed if the torrent has not metadata, is not valid or is a seed.
* Use the same behavior in Web UI and Regular UI
This commit is contained in:
parent
df03b042d6
commit
269bbdf01d
2 changed files with 2 additions and 2 deletions
|
@ -361,7 +361,7 @@ void HttpConnection::respondCommand(QString command)
|
|||
int file_id = parser.post("id").toInt();
|
||||
int priority = parser.post("priority").toInt();
|
||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||
if(h.is_valid()) {
|
||||
if(h.is_valid() && h.has_metadata() && !h.get_torrent_handle().is_seed()) {
|
||||
h.file_priority(file_id, priority);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue