mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-03-10 20:31:47 +00:00
commit
623ab03492
@ -1479,7 +1479,7 @@ void Session::setListeningPort()
|
|||||||
m_nativeSession->listen_on(ports, ec, 0, libt::session::listen_no_system_port);
|
m_nativeSession->listen_on(ports, ec, 0, libt::session::listen_no_system_port);
|
||||||
|
|
||||||
if (ec)
|
if (ec)
|
||||||
logger->addMessage(tr("qBittorrent failed to listen on any interface port: %1. Reason: %2", "e.g: qBittorrent failed to listen on any interface port: TCP/6881. Reason: no such interface" ).arg(QString::number(port)).arg(Utils::String::fromStdString(ec.message())), Log::CRITICAL);
|
logger->addMessage(tr("qBittorrent failed to listen on any interface port: %1. Reason: %2.", "e.g: qBittorrent failed to listen on any interface port: TCP/6881. Reason: no such interface" ).arg(QString::number(port)).arg(QString::fromLocal8Bit(ec.message().c_str())), Log::CRITICAL);
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -2272,10 +2272,10 @@ void Session::handleListenFailedAlert(libt::listen_failed_alert *p)
|
|||||||
proto = "SOCKS5";
|
proto = "SOCKS5";
|
||||||
qDebug() << "Failed listening on " << proto << p->endpoint.address().to_string(ec).c_str() << "/" << p->endpoint.port();
|
qDebug() << "Failed listening on " << proto << p->endpoint.address().to_string(ec).c_str() << "/" << p->endpoint.port();
|
||||||
Logger::instance()->addMessage(
|
Logger::instance()->addMessage(
|
||||||
tr("qBittorrent failed listening on interface %1 port: %2/%3. Reason: %4",
|
tr("qBittorrent failed listening on interface %1 port: %2/%3. Reason: %4.",
|
||||||
"e.g: qBittorrent failed listening on interface 192.168.0.1 port: TCP/6881. Reason: already in use")
|
"e.g: qBittorrent failed listening on interface 192.168.0.1 port: TCP/6881. Reason: already in use")
|
||||||
.arg(p->endpoint.address().to_string(ec).c_str()).arg(proto).arg(QString::number(p->endpoint.port()))
|
.arg(p->endpoint.address().to_string(ec).c_str()).arg(proto).arg(QString::number(p->endpoint.port()))
|
||||||
.arg(Utils::String::fromStdString(p->error.message())), Log::CRITICAL);
|
.arg(QString::fromLocal8Bit(p->error.message().c_str())), Log::CRITICAL);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Session::handleExternalIPAlert(libt::external_ip_alert *p)
|
void Session::handleExternalIPAlert(libt::external_ip_alert *p)
|
||||||
|
@ -64,9 +64,9 @@ void LineEdit::resizeEvent(QResizeEvent *e)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
|
||||||
void LineEdit::updateCloseButton(const QString &text)
|
void LineEdit::updateCloseButton(const QString &text)
|
||||||
{
|
{
|
||||||
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
|
|
||||||
clearButton->setVisible(!text.isEmpty());
|
clearButton->setVisible(!text.isEmpty());
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
@ -24,8 +24,10 @@ public:
|
|||||||
protected:
|
protected:
|
||||||
void resizeEvent(QResizeEvent *e);
|
void resizeEvent(QResizeEvent *e);
|
||||||
|
|
||||||
|
#if (QT_VERSION < QT_VERSION_CHECK(5, 0, 0))
|
||||||
private slots:
|
private slots:
|
||||||
void updateCloseButton(const QString &text);
|
void updateCloseButton(const QString &text);
|
||||||
|
#endif
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QToolButton *searchButton;
|
QToolButton *searchButton;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user