mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-25 14:04:23 +00:00
- file priority can be set for finished torrents that have filtered files
This commit is contained in:
parent
9bb05c8dea
commit
2bf8e2d2d7
@ -357,7 +357,7 @@ void HttpConnection::respondCommand(QString command)
|
|||||||
int file_id = parser.post("id").toInt();
|
int file_id = parser.post("id").toInt();
|
||||||
int priority = parser.post("priority").toInt();
|
int priority = parser.post("priority").toInt();
|
||||||
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
QTorrentHandle h = BTSession->getTorrentHandle(hash);
|
||||||
if(h.is_valid() && h.has_metadata() && !h.get_torrent_handle().is_seed()) {
|
if(h.is_valid() && h.has_metadata()) {
|
||||||
h.file_priority(file_id, priority);
|
h.file_priority(file_id, priority);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -538,7 +538,6 @@ void QTorrentHandle::move_storage(QString new_path) const {
|
|||||||
|
|
||||||
void QTorrentHandle::file_priority(int index, int priority) const {
|
void QTorrentHandle::file_priority(int index, int priority) const {
|
||||||
Q_ASSERT(h.is_valid());
|
Q_ASSERT(h.is_valid());
|
||||||
if(is_seed()) return;
|
|
||||||
h.file_priority(index, priority);
|
h.file_priority(index, priority);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user