mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
committed by
GitHub
parent
41a38428fc
commit
f8a304abdc
@@ -39,9 +39,8 @@
|
||||
#include "base/utils/net.h"
|
||||
#include "webapplication.h"
|
||||
|
||||
WebUI::WebUI()
|
||||
: m_isErrored(false)
|
||||
, m_port(0)
|
||||
WebUI::WebUI(IApplication *app)
|
||||
: ApplicationComponent(app)
|
||||
{
|
||||
configure();
|
||||
connect(Preferences::instance(), &Preferences::changed, this, &WebUI::configure);
|
||||
@@ -77,7 +76,7 @@ void WebUI::configure()
|
||||
const QString serverAddressString = pref->getWebUiAddress();
|
||||
if (!m_httpServer)
|
||||
{
|
||||
m_webapp = new WebApplication(this);
|
||||
m_webapp = new WebApplication(app(), this);
|
||||
m_httpServer = new Http::Server(m_webapp, this);
|
||||
}
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user