summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-02-04 18:43:33 -0500
committerLoren Burkholder <computersemiexpert@outlook.com>2021-02-04 18:44:36 -0500
commit777b9bf20de698bf9dabd2782c212a3b819c8e51 (patch)
treef529e4aaa36e91683576c12aefc5679168d43ece /src
parentUse UserSettings where possible (diff)
downloadnheko-777b9bf20de698bf9dabd2782c212a3b819c8e51.tar.xz
Set profile to "" if it's the default for compatibility
Diffstat (limited to 'src')
-rw-r--r--src/UserSettingsPage.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index 96c07d7c..d31c8ef9 100644
--- a/src/UserSettingsPage.cpp
+++ b/src/UserSettingsPage.cpp
@@ -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();