[kontact] [Bug 327865] Endless fetch loop with favorite collections

Christian Mollekopf mollekopf at kolabsys.com
Wed Dec 18 17:21:46 GMT 2013


https://bugs.kde.org/show_bug.cgi?id=327865

--- Comment #9 from Christian Mollekopf <mollekopf at kolabsys.com> ---
The reason why everything gets dereferenced to zero, is because the
FavortiteCollectionsModel sits on top of the EntityCollectionOrderProxyModel
just like the other SelectionProxyModels that are part of StorageModel.

So unless we have a workaround (like delaying the decrease of the refcount),
the layoutChanged signal is our real problem.

The layoutChanged signal get's emitted because the QSortFilterProxyModel
baseclass of EntityCollectionOrderProxyModel detects that some indexes need to
be resorted in it's sourceDataChanged slot, and that results in a layoutChanged
signal. The dataChanged signal causing it in this case stems from
Akonadi::EntityTreeModelPrivate::changeFetchState.
However, the underlying models shouldn't change the order just because a new
folder was selected in the view.

-- 
You are receiving this mail because:
You are the assignee for the bug.



More information about the Kdepim-bugs mailing list