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

fix(settings): set default proxy type to None, enabling UDP by default

Fix #5311
This commit is contained in:
Anthony Bilinski 2018-08-28 20:33:50 -07:00
parent 7ff1d6053a
commit a2c44cbeda
No known key found for this signature in database
GPG Key ID: 2AA8E0DA1B31FB3C

View File

@ -400,8 +400,7 @@ void Settings::loadPersonal(Profile* profile)
ps.beginGroup("Proxy"); ps.beginGroup("Proxy");
{ {
int type = ps.value("proxyType", static_cast<int>(getProxyType())).toInt(); proxyType = static_cast<ProxyType>(ps.value("proxyType", 0 /* ProxyType::None */).toInt());
setProxyType(static_cast<ProxyType>(type));
proxyAddr = ps.value("proxyAddr", proxyAddr).toString(); proxyAddr = ps.value("proxyAddr", proxyAddr).toString();
proxyPort = static_cast<quint16>(ps.value("proxyPort", proxyPort).toUInt()); proxyPort = static_cast<quint16>(ps.value("proxyPort", proxyPort).toUInt());
} }