[Kde-pim] EntityTreeModelPrivate::retrieveAncestors won't work

Alex Fiestas afiestas at kde.org
Fri May 25 01:19:04 BST 2012


On Friday, May 25, 2012 02:05:08 AM Dan Vratil wrote:
> On Thursday 24 of May 2012 15:59:38 Alex Fiestas wrote:
> > When a DAV resource is added and address/organizer are executed the new
> > collections won't be shown until the application is restarted.
> 
> I've run to this issue with the Google resources and I managed to work
> around it by adding mime types of child collections to the parent
> collection.
> 
> So the problem might lie somewhere else then in the code you mentioned
> below. I'd guess it would be the monitor, which does not check child
> collections if their parent does not match the mime type filter or
> something like that (just a wild guess).
The monitor does the job well, it will forward the child collection to the 
entitymodel, by emitting collection added which is connected to 
EntityTreeModelPrivate::monitoredCollectionAdded.

In that method, there is code to handle this case, noted with the following 
comment:
// The collection we're interested in is contained in a collection we're not 
interested in.
// We download the ancestors of the collection we're interested in to complete 
the tree.

After those comments retrieveAncestors is called.

So I'm pretty sure the problem is in retrieveAncestors touch ofc I could be 
wrong.
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/



More information about the kde-pim mailing list