Hi,

How do the changes  in Locale kcm propagated to KGlobal::locale() for
datetime related?

I put kDebug to display KGlobal::locale()->timeFormat(), but the value
displayed was the old one.
It will display the new one until i restart plasma-desktop.

In order to always get new value i have to do like below:
KSharedConfigPtr m_userConfig = KSharedConfig::openConfig(
"kcmlocale-user", KConfig::IncludeGlobals );
KConfigGroup m_userSettings = KConfigGroup( m_userConfig, "Locale" );
kDebug() << "TIME FORMAT" << m_userSettings.readEntry( "TimeFormat",
QString() );

instead of KGlobal::locale()->timeFormat().

Is this normal behavior or confirmed bug?

Thanks,
Reza

>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

Reply via email to