Idea: SkipDirtyOnIdenticalValues WriteConfigFlag for KConfigBase / KConfig

Matthew Woehlke mw_triad at users.sourceforge.net
Mon Jul 14 17:16:39 BST 2008


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...





More information about the kde-core-devel mailing list