Bug 162514

Summary: [regression] KConfigGroup requires sync() to write to config file
Product: [Frameworks and Libraries] kdelibs Reporter: Marc Mutz <mutz>
Component: kdecoreAssignee: kdelibs bugs <kdelibs-bugs>
Status: RESOLVED NOT A BUG    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marc Mutz 2008-05-23 11:33:30 UTC
Version:            (using Devel)
Installed from:    Compiled sources

This code (from kdepim/kleopatra/commands/selftestcommand.cpp) worked in 4.0-branch (I'm pretty sure of it, the bug it causes is pretty obvious)
{
        KConfigGroup config( KGlobal::config(), "Self-Test" );
        config.writeEntry( "run-at-startup", on );
}
but requires a
        config.sync();
in trunk.
Comment 1 Marc Mutz 2008-05-23 11:44:34 UTC
Might this be caused by kded4 not running?
Comment 2 Oswald Buddenhagen 2008-05-23 19:14:34 UTC
this is typically caused by the global config being held open due to a stray KComponentData instance.
Comment 3 Oswald Buddenhagen 2008-07-26 15:09:14 UTC
i'll close it per comment #2. feel free to reopen if you can disprove the theory. :-)