mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
- Fixed messageBox when listening on busy port (Web UI)
This commit is contained in:
parent
0a9462aa63
commit
b5928aa2e3
1 changed files with 2 additions and 2 deletions
|
@ -1461,9 +1461,9 @@ bool GUI::initWebUi(QString username, QString password, int port)
|
||||||
httpServer->setAuthorization(username, password);
|
httpServer->setAuthorization(username, password);
|
||||||
bool success = httpServer->listen(QHostAddress::Any, port);
|
bool success = httpServer->listen(QHostAddress::Any, port);
|
||||||
if (success)
|
if (success)
|
||||||
qDebug()<<"Web UI listening on port "<<port;
|
qDebug("Web UI listening on port %d", port);
|
||||||
else
|
else
|
||||||
QMessageBox::critical(this, "Web User Interface Error", "Unable to initialize HTTP Server on port " + port);
|
QMessageBox::critical(this, "Web User Interface Error", "Unable to initialize HTTP Server on port " + misc::toQString(port));
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue