mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
tiny polishing
This commit is contained in:
parent
a14da15d79
commit
1719c72f67
|
@ -130,7 +130,7 @@ void Settings::load()
|
|||
autostartInTray = s.value("autostartInTray", false).toBool();
|
||||
closeToTray = s.value("closeToTray", false).toBool();
|
||||
forceTCP = s.value("forceTCP", false).toBool();
|
||||
setProxyType(s.value("proxyType", 0).toInt());
|
||||
setProxyType(s.value("proxyType", static_cast<int>(ProxyType::ptNone)).toInt());
|
||||
proxyAddr = s.value("proxyAddr", "").toString();
|
||||
proxyPort = s.value("proxyPort", 0).toInt();
|
||||
currentProfile = s.value("currentProfile", "").toString();
|
||||
|
@ -591,7 +591,7 @@ ProxyType Settings::getProxyType() const
|
|||
|
||||
void Settings::setProxyType(int newValue)
|
||||
{
|
||||
if (newValue >= 0 && newValue <= 3)
|
||||
if (newValue >= 0 && newValue <= 2)
|
||||
proxyType = static_cast<ProxyType>(newValue);
|
||||
else
|
||||
proxyType = ProxyType::ptNone;
|
||||
|
|
Loading…
Reference in New Issue
Block a user