1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

tiny polishing

This commit is contained in:
apprb 2014-12-28 19:04:32 +06:00
parent a14da15d79
commit 1719c72f67
No known key found for this signature in database
GPG Key ID: B001911B5B22FB9B

View File

@ -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;