mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Code clean up
This commit is contained in:
parent
9c13ed2635
commit
126e2e7c75
31 changed files with 279 additions and 309 deletions
|
@ -195,8 +195,8 @@ void PeerListWidget::banSelectedPeers(QStringList peer_ips) {
|
|||
if(ret) return;
|
||||
foreach(const QString &ip, peer_ips) {
|
||||
qDebug("Banning peer %s...", ip.toLocal8Bit().data());
|
||||
properties->getBTSession()->addConsoleMessage(tr("Manually banning peer %1...").arg(ip));
|
||||
properties->getBTSession()->banIP(ip);
|
||||
QBtSession::instance()->addConsoleMessage(tr("Manually banning peer %1...").arg(ip));
|
||||
QBtSession::instance()->banIP(ip);
|
||||
}
|
||||
// Refresh list
|
||||
loadPeers(properties->getCurrentTorrent());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue