Bug 162514 - [regression] KConfigGroup requires sync() to write to config file
Summary: [regression] KConfigGroup requires sync() to write to config file
Status: RESOLVED NOT A BUG
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdecore (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-23 11:33 UTC by Marc Mutz
Modified: 2008-07-26 15:09 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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. :-)