mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-16 02:03:07 -07:00
Code clean up
This commit is contained in:
parent
9c13ed2635
commit
126e2e7c75
31 changed files with 279 additions and 309 deletions
|
@ -607,7 +607,7 @@ bool QBtSession::initWebUi(QString username, QString password, int port) {
|
|||
httpServer->close();
|
||||
}
|
||||
} else {
|
||||
httpServer = new HttpServer(this, 3000, this);
|
||||
httpServer = new HttpServer(3000, this);
|
||||
}
|
||||
httpServer->setAuthorization(username, password);
|
||||
bool success = true;
|
||||
|
@ -2253,6 +2253,7 @@ void QBtSession::readAlerts() {
|
|||
QTorrentHandle h(p->handle);
|
||||
if(!h.has_error())
|
||||
h.save_resume_data();
|
||||
emit pausedTorrent(h);
|
||||
}
|
||||
}
|
||||
else if (tracker_error_alert* p = dynamic_cast<tracker_error_alert*>(a.get())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue