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()); }