mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-20 07:27:22 -06:00
Make WebUI error non-fatal
* Do not exit the app when WebUI is failed for start. * Print the error to stdout. PR #19697. Closes #19695. Closes #19469.
This commit is contained in:
@@ -56,12 +56,13 @@ public:
|
||||
|
||||
bool isEnabled() const;
|
||||
bool isErrored() const;
|
||||
QString errorMessage() const;
|
||||
bool isHttps() const;
|
||||
QHostAddress hostAddress() const;
|
||||
quint16 port() const;
|
||||
|
||||
signals:
|
||||
void fatalError();
|
||||
void error(const QString &message);
|
||||
|
||||
private slots:
|
||||
void configure();
|
||||
@@ -69,6 +70,7 @@ private slots:
|
||||
private:
|
||||
bool m_isEnabled = false;
|
||||
bool m_isErrored = false;
|
||||
QString m_errorMsg;
|
||||
QPointer<Http::Server> m_httpServer;
|
||||
QPointer<Net::DNSUpdater> m_dnsUpdater;
|
||||
QPointer<WebApplication> m_webapp;
|
||||
|
||||
Reference in New Issue
Block a user