[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    Re: KDE/kdelibs/kdecore/config
From:       Sebastian =?iso-8859-1?q?Tr=FCg?= <trueg () kde ! org>
Date:       2009-02-19 9:24:19
Message-ID: 200902191024.19663.trueg () kde ! org
[Download RAW message or body]

On Thursday 19 February 2009 10:17:17 Oswald Buddenhagen wrote:
> On Wed, Feb 18, 2009 at 07:00:35PM +0000, Sebastian Trueg wrote:
> > +     * Syncs the group back to the parent config. Without calling this
> > +     * method changes to the group will not appear in the parent config
> > +     * and thus, will never be written back to disk.
> > +     */
> >      void sync();
>
> this is plain wrong. KConfigGroup does not hold any data by itself; it
> is just a handle to the underlying KConfig object. that means that
> destroying the KConfig *will* sync any yet unsynced changes done through
> KConfigGroups. if that does not work for you, you are most likely having
> some object lifetime problem.

I know and I already corrected it. I was confused by a discussion I had on 
kcd.
In my case the global config is not synced back to disk for some reason and I 
ended up looking for the solution in the wrong place.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic