KConfig marking empty list entries as deleted

Thomas Braxton kde.braxton at gmail.com
Sun Oct 7 19:30:27 BST 2007


On 10/7/07, Kevin Krammer <kevin.krammer at gmx.at> wrote:
>
> Hi all,
>
> I am testing KAddressBook distribution list IO and I think something has
> changed in KConfig with respect to empty QStringList entries.
>
> KABC saves distribution lists as QStringLists (ID of the addressee and
> email
> address).
>
> When I start KAddressBook, create a new distribution list and save, the
> file
> .kde/share/apps/kabc/distlists ends up like this
>
> [DistributionLists]
> Test1[$d]
>
> The problem is that when loading this config, its entryMap() will be
> empty.
>
> I think the cause is in kconfig.cpp:675
>
>     if ( value.isNull() ) // deleting entry
>         options |= KEntryMap::EntryDeleted;
>
> Since KConfig has been reworked since KDE3 I don't know it this is the new
> correct behavior, e.g. the application code has to be changed to not write
> empty lists.


you're right, I just checked in a change that should fix this, but I can't
test it right now, let me know if it works.

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071007/5e3be0d8/attachment.htm>


More information about the kde-core-devel mailing list