[PATCH 04/23] kcalendarsystemgregorian: Read settings from the correct config group.
Jon Severinsson
jon at severinsson.net
Fri Oct 12 15:13:39 UTC 2012
---
kdecore/date/kcalendarsystemgregorian.cpp | 3 ++-
1 fil ändrad, 2 tillägg(+), 1 borttagning(-)
diff --git a/kdecore/date/kcalendarsystemgregorian.cpp b/kdecore/date/kcalendarsystemgregorian.cpp
index 12d096a..92fd882 100644
--- a/kdecore/date/kcalendarsystemgregorian.cpp
+++ b/kdecore/date/kcalendarsystemgregorian.cpp
@@ -52,7 +52,8 @@ void KCalendarSystemGregorianPrivate::loadDefaultEraList()
{
QString name, shortName, format;
- KConfigGroup cg(config(), QString::fromLatin1("KCalendarSystem %1").arg(q->calendarType(q->calendarSystem())));
+ KConfigGroup lcg(config(), QString::fromLatin1("Locale"));
+ KConfigGroup cg = lcg.group(QString::fromLatin1("KCalendarSystem %1").arg(q->calendarType()));
m_useCommonEra = cg.readEntry("UseCommonEra", false);
if (m_useCommonEra) {
--
1.7.10.4
More information about the Kde-frameworks-devel
mailing list