From a2c44cbeda247bf06953a641d8d745fd0d3df62c Mon Sep 17 00:00:00 2001 From: Anthony Bilinski Date: Tue, 28 Aug 2018 20:33:50 -0700 Subject: [PATCH] fix(settings): set default proxy type to None, enabling UDP by default Fix #5311 --- src/persistence/settings.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/persistence/settings.cpp b/src/persistence/settings.cpp index 70552b4be..2da15fc28 100644 --- a/src/persistence/settings.cpp +++ b/src/persistence/settings.cpp @@ -400,8 +400,7 @@ void Settings::loadPersonal(Profile* profile) ps.beginGroup("Proxy"); { - int type = ps.value("proxyType", static_cast(getProxyType())).toInt(); - setProxyType(static_cast(type)); + proxyType = static_cast(ps.value("proxyType", 0 /* ProxyType::None */).toInt()); proxyAddr = ps.value("proxyAddr", proxyAddr).toString(); proxyPort = static_cast(ps.value("proxyPort", proxyPort).toUInt()); }