diff --git a/src/misc/settings.cpp b/src/misc/settings.cpp index c02a406c0..996d9f039 100644 --- a/src/misc/settings.cpp +++ b/src/misc/settings.cpp @@ -215,8 +215,11 @@ void Settings::load() setProxyType(s.value("proxyType", static_cast(ProxyType::ptNone)).toInt()); proxyAddr = s.value("proxyAddr", "").toString(); proxyPort = s.value("proxyPort", 0).toInt(); - currentProfile = s.value("currentProfile", "").toString(); - currentProfileId = makeProfileId(currentProfile); + if (currentProfile.isEmpty()) + { + currentProfile = s.value("currentProfile", "").toString(); + currentProfileId = makeProfileId(currentProfile); + } autoAwayTime = s.value("autoAwayTime", 10).toInt(); checkUpdates = s.value("checkUpdates", false).toBool(); showWindow = s.value("showWindow", true).toBool();