mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
use post_status_update()
Conflicts: src/qtlibtorrent/qbtsession.cpp
This commit is contained in:
parent
eb46326d23
commit
b50d7331c7
4 changed files with 31 additions and 12 deletions
|
@ -2568,6 +2568,9 @@ void QBtSession::handleAlert(libtorrent::alert* a) {
|
|||
boost::system::error_code ec;
|
||||
addConsoleMessage(tr("External IP: %1", "e.g. External IP: 192.168.0.1").arg(p->external_address.to_string(ec).c_str()), "blue");
|
||||
}
|
||||
else if (state_update_alert *p = dynamic_cast<state_update_alert *>(a)) {
|
||||
emit stateUpdate(p->status);
|
||||
}
|
||||
} catch (const std::exception& e) {
|
||||
qWarning() << "Caught exception in readAlerts(): " << e.what();
|
||||
}
|
||||
|
@ -2819,6 +2822,10 @@ quint64 QBtSession::getAlltimeUL() const {
|
|||
return m_speedMonitor->getAlltimeUL();
|
||||
}
|
||||
|
||||
void QBtSession::postTorrentUpdate() {
|
||||
s->post_torrent_updates();
|
||||
}
|
||||
|
||||
void QBtSession::handleIPFilterParsed(int ruleCount)
|
||||
{
|
||||
addConsoleMessage(tr("Successfully parsed the provided IP filter: %1 rules were applied.", "%1 is a number").arg(ruleCount));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue