mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-06 23:52:31 -06:00
Don't use deprecated torrent_handle::set_tracker_login
This commit is contained in:
@@ -1331,11 +1331,13 @@ void TorrentHandle::moveStorage(const QString &newPath)
|
||||
}
|
||||
}
|
||||
|
||||
#if LIBTORRENT_VERSION_NUM < 10100
|
||||
void TorrentHandle::setTrackerLogin(const QString &username, const QString &password)
|
||||
{
|
||||
m_nativeHandle.set_tracker_login(std::string(username.toLocal8Bit().constData())
|
||||
, std::string(password.toLocal8Bit().constData()));
|
||||
}
|
||||
#endif
|
||||
|
||||
void TorrentHandle::renameFile(int index, const QString &name)
|
||||
{
|
||||
|
||||
@@ -333,7 +333,9 @@ namespace BitTorrent
|
||||
void forceReannounce(int index = -1);
|
||||
void forceDHTAnnounce();
|
||||
void forceRecheck();
|
||||
#if LIBTORRENT_VERSION_NUM < 10100
|
||||
void setTrackerLogin(const QString &username, const QString &password);
|
||||
#endif
|
||||
void renameFile(int index, const QString &name);
|
||||
bool saveTorrentFile(const QString &path);
|
||||
void prioritizeFiles(const QVector<int> &priorities);
|
||||
|
||||
Reference in New Issue
Block a user