[BUG] changes saved with KConfig are not know by KConfigGroup

David Faure dfaure at klaralvdalens-datakonsult.se
Wed Feb 12 17:21:43 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 12 February 2003 18:07, Willy De la Court wrote:
> Hi All,

Hi.
This is no bug.
I suggest using kde-devel for such questions btw.

> but those changes are not seen KGlobal::config()
> in the same session

Normal, that's another KConfig object. There's no cross-kconfig-object
notification, and this is exactly why it's much better to write stuff
to KGlobal::config instead of writing it to kdeglobals by hand.

> any sollution to this problem or should the source of all programs that use 
> kdeglobals be changed to use KConfigGroup with KGlobal::config()

They should, yes.
(KConfigGroup is only one way. You can also setGroup(new)/setGroup(old)
or use KConfigGroupSaver. I'm just saying this in case you see old code:
if it uses any of those 3 ways, it's fine. For new code KConfigGroup is the best though).

- -- 
David Faure -- faure at kde.org, dfaure at klaralvdalens-datakonsult.se
Klarälvdalens Datakonsult AB, Platform-independent software solutions
Contributing to: http://www.konqueror.org/, http://www.koffice.org/
KOffice-1.2.1 is available - http://download.kde.org/stable/koffice-1.2.1/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE+SoKn72KcVAmwbhARAnglAJ9aoxTepY8ciDZWVdRjRzBA+djDgACfeHC0
zkNWS48wPwtHlK3eBRJQcX8=
=gWnr
-----END PGP SIGNATURE-----





More information about the kde-core-devel mailing list