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

List:       kde-core-devel
Subject:    Re: Idea: SkipDirtyOnIdenticalValues WriteConfigFlag for KConfigBase
From:       Matthew Woehlke <mw_triad () users ! sourceforge ! net>
Date:       2008-07-14 16:16:39
Message-ID: g5fu58$jl2$1 () ger ! gmane ! org
[Download RAW message or body]

Oswald Buddenhagen wrote:
> On Fri, Jul 11, 2008 at 04:02:25PM -0500, Matthew Woehlke wrote:
>> writeEntry(value) -- always writes if empty, don't set dirty if  
>> unchanged (same as current behavior I think, sans gratuitous dirtying?)
>>
>> writeEntry(value, default) -- don't write if current is empty and  
>> value==default, otherwise as above
>>
> .... default obviously being cascaded with the system configs.
> makes sense.

Hmm, sure. Maybe "don't write if read(<default>) would give <default>" 
is more correct? Actually, phrasing it that way removes the need to 
reference the behavior of the other flavor of the method, which is good.

-- 
Matthew
Thus sang the fat lady...

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

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