mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 15:07:22 -06:00
Don't use deprecated torrent_handle::set_tracker_login
This commit is contained in:
@@ -28,9 +28,11 @@
|
||||
* Contact : chris@qbittorrent.org
|
||||
*/
|
||||
|
||||
#include "base/bittorrent/torrenthandle.h"
|
||||
#include "trackerlogin.h"
|
||||
|
||||
#include <libtorrent/version.hpp>
|
||||
#include "base/bittorrent/torrenthandle.h"
|
||||
|
||||
trackerLogin::trackerLogin(QWidget *parent, BitTorrent::TorrentHandle *const torrent)
|
||||
: QDialog(parent)
|
||||
, m_torrent(torrent)
|
||||
@@ -47,7 +49,9 @@ trackerLogin::~trackerLogin() {}
|
||||
|
||||
void trackerLogin::on_loginButton_clicked() {
|
||||
// login
|
||||
#if LIBTORRENT_VERSION_NUM < 10100
|
||||
m_torrent->setTrackerLogin(lineUsername->text(), linePasswd->text());
|
||||
#endif
|
||||
close();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user