Idea: SkipDirtyOnIdenticalValues WriteConfigFlag for KConfigBase / KConfig
Oswald Buddenhagen
ossi at kde.org
Mon Jul 14 22:33:45 BST 2008
On Mon, Jul 14, 2008 at 11:16:39AM -0500, Matthew Woehlke wrote:
> Oswald Buddenhagen wrote:
>> On Fri, Jul 11, 2008 at 04:02:25PM -0500, Matthew Woehlke wrote:
>>> 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?
>
almost: what if there is currently a local value written which matches
the default? i think it would be deleted, which is not covered by this
version. you can fix that by substituting "write" with Something Else
(TM).
--
Hi! I'm a .signature virus! Copy me into your ~/.signature, please!
--
Confusion, chaos, panic - my work here is done.
More information about the kde-core-devel
mailing list