mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-15 12:41:36 +03:00
Don't use deprecated url_seed_alert fields
This commit is contained in:
parent
13b04f8d2d
commit
a2f82be6c2
1 changed files with 7 additions and 1 deletions
|
@ -3666,7 +3666,13 @@ void Session::handlePeerBanAlert(libt::peer_ban_alert *p)
|
||||||
|
|
||||||
void Session::handleUrlSeedAlert(libt::url_seed_alert *p)
|
void Session::handleUrlSeedAlert(libt::url_seed_alert *p)
|
||||||
{
|
{
|
||||||
Logger::instance()->addMessage(tr("URL seed lookup failed for URL: '%1', message: %2").arg(QString::fromStdString(p->url)).arg(QString::fromStdString(p->message())), Log::CRITICAL);
|
Logger::instance()->addMessage(tr("URL seed lookup failed for URL: '%1', message: %2")
|
||||||
|
#if LIBTORRENT_VERSION_NUM >= 10100
|
||||||
|
.arg(QString::fromStdString(p->server_url()))
|
||||||
|
#else
|
||||||
|
.arg(QString::fromStdString(p->url))
|
||||||
|
#endif
|
||||||
|
.arg(QString::fromStdString(p->message())), Log::CRITICAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::handleListenSucceededAlert(libt::listen_succeeded_alert *p)
|
void Session::handleListenSucceededAlert(libt::listen_succeeded_alert *p)
|
||||||
|
|
Loading…
Reference in a new issue