kconfig sync at exit

Oswald Buddenhagen ossi at kde.org
Wed Jun 20 19:54:47 BST 2007


On Wed, Jun 20, 2007 at 08:28:55PM +0200, Thomas Zander wrote:
> I was surprised to see that I had to manually call 'config->sync()' 
> afterwards since none of my changes (not even the new group) appeared in 
> the config due to the app quitting shortly after.
> 
?

KConfig::~KConfig()
{
    sync();
    delete d;
}

my guess is that your app crashes before it gets chance to actually
destroy the config.

-- 
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Chaos, panic, and disorder - my work here is done.




More information about the kde-core-devel mailing list