Summary: | 'kcmshell4 language' crashes when 'American English' is not the (most) preferred language. | ||
---|---|---|---|
Product: | [Applications] systemsettings | Reporter: | Stefan Böhmann <kde> |
Component: | kcm_language | Assignee: | John Layt <jlayt> |
Status: | RESOLVED FIXED | ||
Severity: | crash | CC: | jlayt, remur |
Priority: | NOR | ||
Version: | 1.0 | ||
Target Milestone: | --- | ||
Platform: | Compiled Sources | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Stefan Böhmann
2010-12-14 00:34:18 UTC
SVN commit 1206247 by jlayt: KCM Locale fix crash when using language other than en_US. When you pass a KConfig to KLocale it calls setLocale() on the KConfig using the KLocales current langauge. If this language is different to the KConfig's language then a reparseConfiguration() is called to change any localized settings. However, if your KCOnfig is enitrely in memory then you have no file to reparse and you end up with null settings leading to crashes. Fix makes sure that the KConfig and KLocale always have the same langauge set before passing in the KConfig, thus making sure there's no force reparse and the settings remain intact. BUG: 259790 M +48 -12 kcmlocale.cpp M +3 -4 kcmlocale.h WebSVN link: http://websvn.kde.org/?view=rev&revision=1206247 |