mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 16:37:21 -06:00
committed by
sledgehammer999
parent
e70ee9a5b6
commit
120965f823
@@ -1424,16 +1424,6 @@ bool TorrentHandle::saveTorrentFile(const QString &path)
|
||||
return false;
|
||||
}
|
||||
|
||||
void TorrentHandle::setFilePriority(int index, int priority)
|
||||
{
|
||||
std::vector<int> priorities = m_nativeHandle.file_priorities();
|
||||
|
||||
if ((priorities.size() > static_cast<quint64>(index)) && (priorities[index] != priority)) {
|
||||
priorities[index] = priority;
|
||||
prioritizeFiles(QVector<int>::fromStdVector(priorities));
|
||||
}
|
||||
}
|
||||
|
||||
void TorrentHandle::handleStateUpdate(const libt::torrent_status &nativeStatus)
|
||||
{
|
||||
updateStatus(nativeStatus);
|
||||
|
||||
Reference in New Issue
Block a user