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

List:       kde-core-devel
Subject:    Re: KConfigBase::entryIsImmutable() always returns true? (was:
From:       Marc Mutz <marc.mutz () uni-bielefeld ! de>
Date:       2003-07-29 18:08:08
[Download RAW message or body]


On Tuesday 29 July 2003 16:48, Waldo Bastian wrote:
> On Monday 28 July 2003 14:48, Marc Mutz wrote:
<snip>
> > I've currently got problems with KConfigBase::entryIsImmutable()
> > always returning true for existing  entries for me.
>
> Which version of kdelibs are you using?

HEAD from last week.

> Note that if you open the KConfig object as read-only all entries are
> reported immutable.

I use

const KConfigGroup foo( KMKernel::config(), "Foo" );

Where KMKernel::config() is doing

KConfig* KMKernel::config()
{
    if (!myConfig)
        myConfig = myConfigSD.setObject(new KConfig( "kmailrc"));
    return myConfig;
}

and

myConfigSD is a static KStaticDeleter<KConfig> myConfigSD;

So it's not read-only (second arg of KConfig ctor defaults to false).

Marc

-- 
The [Sonny Bono Copyright Term Extension Act] expands copyright not
only for future, but also for existing works, even though their
authors obviously don't need any additional incentive to create them.
                -- "The Progress Of Science And Useful Arts":
                    Why Copyright Today Threatens Intellectual Freedom,
                   Free Expression Policy Project

[Attachment #3 (application/pgp-signature)]

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

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