mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-01-24 18:44:52 +08:00
Fix WebUI unreachable issue
QVariant doesn't have constructor for plain char, by default it converts a plain char into an integer, hence the WebUI issue. Closes #9333.
This commit is contained in:
parent
ee57b68901
commit
262c3a75bd
@ -530,7 +530,7 @@ void Preferences::setWebUiAuthSubnetWhitelist(QStringList subnets)
|
|||||||
|
|
||||||
QString Preferences::getServerDomains() const
|
QString Preferences::getServerDomains() const
|
||||||
{
|
{
|
||||||
return value("Preferences/WebUI/ServerDomains", '*').toString();
|
return value("Preferences/WebUI/ServerDomains", QChar('*')).toString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preferences::setServerDomains(const QString &str)
|
void Preferences::setServerDomains(const QString &str)
|
||||||
@ -540,7 +540,7 @@ void Preferences::setServerDomains(const QString &str)
|
|||||||
|
|
||||||
QString Preferences::getWebUiAddress() const
|
QString Preferences::getWebUiAddress() const
|
||||||
{
|
{
|
||||||
return value("Preferences/WebUI/Address", '*').toString().trimmed();
|
return value("Preferences/WebUI/Address", QChar('*')).toString().trimmed();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Preferences::setWebUiAddress(const QString &addr)
|
void Preferences::setWebUiAddress(const QString &addr)
|
||||||
|
Loading…
Reference in New Issue
Block a user