Bug 460842

Summary: Default formats set with clicks on 'Defaults' and 'Apply' buttons are not remembered
Product: [Applications] systemsettings Reporter: Patrick Silva <bugseforuns>
Component: kcm_regionandlangAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED FIXED    
Severity: normal CC: hanyoung, nate
Priority: NOR    
Version First Reported In: master   
Target Milestone: ---   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed/Implemented In: 5.26.2
Sentry Crash Report:

Description Patrick Silva 2022-10-22 09:31:36 UTC
SUMMARY
Can reproduce on Arch Linux (Plasma 5.26.1) and neon unstable.

STEPS TO REPRODUCE
1. use formats different of the default ones for your language - I use American English language and Portuguese (Brazil) formats
2. click on 'Defauls'  button - now you have the default formats for you language, as expected
3. click on 'Apply' button
4. go to another KCM
5. go back to 'Region & Language' KCM

OBSERVED RESULT
the dafault formats were lost

EXPECTED RESULT
the default formats should be remembered

SOFTWARE/OS VERSIONS
Operating System: KDE neon Unstable Edition
KDE Plasma Version: 5.26.80
KDE Frameworks Version: 5.100.0
Qt Version: 5.15.6
Graphics Platform: Wayland
Comment 1 Bug Janitor Service 2022-10-22 12:06:01 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/plasma-workspace/-/merge_requests/2248
Comment 2 Nate Graham 2022-10-24 15:36:51 UTC
Git commit b737b36013e059caf0f899871fa7932634ca27e2 by Nate Graham, on behalf of Han Young.
Committed on 24/10/2022 at 15:36.
Pushed by ngraham into branch 'master'.

[kcms/kcm_regionandlanguage] fix config not saved after clicking 'defaults' and 'save'

M  +3    -0    kcms/region_language/kcmregionandlang.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/b737b36013e059caf0f899871fa7932634ca27e2
Comment 3 Nate Graham 2022-10-24 15:38:07 UTC
Git commit 3d321a242b4d984778d84b7b62669a24e92e62b5 by Nate Graham, on behalf of Han Young.
Committed on 24/10/2022 at 15:37.
Pushed by ngraham into branch 'Plasma/5.26'.

[kcms/kcm_regionandlanguage] fix config not saved after clicking 'defaults' and 'save'


(cherry picked from commit b737b36013e059caf0f899871fa7932634ca27e2)

M  +3    -0    kcms/region_language/kcmregionandlang.cpp

https://invent.kde.org/plasma/plasma-workspace/commit/3d321a242b4d984778d84b7b62669a24e92e62b5