Set profile to "" if it's the default for compatibility

This commit is contained in:
Loren Burkholder 2021-02-04 18:43:33 -05:00
parent 46e15218d4
commit 777b9bf20d
1 changed files with 2 additions and 2 deletions

View File

@ -115,8 +115,8 @@ UserSettings::load(std::optional<QString> profile)
cameraFrameRate_ = settings.value("user/camera_frame_rate", QString()).toString();
useStunServer_ = settings.value("user/use_stun_server", false).toBool();
if (profile)
profile_ = *profile;
if (profile) // set to "" if it's the default to maintain compatibility
profile_ = (*profile == "default") ? "" : *profile;
else
profile_ = settings.value("user/currentProfile", "").toString();