[PATCH] KBookmarks / fd.o desktop-bookmark-specHi

nf2 nf2 at scheinwelt.at
Sun Mar 16 17:32:37 GMT 2008


Hi Daniel,

Daniel Teske wrote:
> Hi Norbert,
>
> thanks for the patch. And sorry for taking so long to answer. As to the icon code, that looks good and correct. For the external file part, I have a few questions:
>
> In the new KBookmarkManager::KBookmarkManager() constructor, you only start watching if the file already exists. Which if I read the code correctly means you never going to watch this file
>
> Could you explain why you startWatch() in the destructor of KBookmarkmanager? That looks strange
>   

The startWatch() is also called in KBookmarkManager::saveAs(). It's not 
in the destructor - just looks like it in the patch :-)
The reason is that i was not sure whether i can start KDirWatch on a non 
existing file.

> In kbookmark.cc if we call the function findMetaData() with METADATA_KDE_OWNER, it returns the first metadata element which has either the right or no owner.
> Which means if there are both, a metadata element with METADATA_KDE_OWNER and a element with an empty owner, the function returns whichever comes first. 

I think it works as expected, as only if ( owner == forOwner ) returns 
from the loop. But i have just moved this code and made it more generic.

Regards
Norbert










More information about the kde-core-devel mailing list