diff options
author | Loren Burkholder <computersemiexpert@outlook.com> | 2021-02-04 18:43:33 -0500 |
---|---|---|
committer | Loren Burkholder <computersemiexpert@outlook.com> | 2021-02-04 18:44:36 -0500 |
commit | 777b9bf20de698bf9dabd2782c212a3b819c8e51 (patch) | |
tree | f529e4aaa36e91683576c12aefc5679168d43ece /src | |
parent | Use UserSettings where possible (diff) | |
download | nheko-777b9bf20de698bf9dabd2782c212a3b819c8e51.tar.xz |
Set profile to "" if it's the default for compatibility
Diffstat (limited to 'src')
-rw-r--r-- | src/UserSettingsPage.cpp | 4 |
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(); |