mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-22 00:17:23 -06:00
Add preliminary support of libtorrent v1.2
libtorrent v1.2 should be built with deprecated features enabled.
This commit is contained in:
@@ -52,9 +52,9 @@ int TorrentContentModelFile::fileIndex() const
|
||||
return m_fileIndex;
|
||||
}
|
||||
|
||||
void TorrentContentModelFile::setPriority(BitTorrent::FilePriority newPriority, bool updateParent)
|
||||
void TorrentContentModelFile::setPriority(BitTorrent::DownloadPriority newPriority, bool updateParent)
|
||||
{
|
||||
Q_ASSERT(newPriority != BitTorrent::FilePriority::Mixed);
|
||||
Q_ASSERT(newPriority != BitTorrent::DownloadPriority::Mixed);
|
||||
|
||||
if (m_priority == newPriority)
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user