[Kde-pim] Review Request 112958: Increase reference count of favourite collections

Christian Mollekopf chrigi_1 at fastmail.fm
Thu Nov 21 10:54:24 GMT 2013


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/112958/#review44100
-----------------------------------------------------------


I think this goes against the original idea of the code, where rootIndexAdded in Akonadi::SelectionProxyModel is supposed to keep all collections in the model referenced. It's probably an effective workaround though to keep items from getting purged all the time...
I think the actual bug lies in KSelectionProxyModel, but I'd like to confirm that first. But afterwards I guess we can add this as a workaround if we document it as such.

- Christian Mollekopf


On Sept. 26, 2013, 11:51 a.m., Dan Vrátil wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/112958/
> -----------------------------------------------------------
> 
> (Updated Sept. 26, 2013, 11:51 a.m.)
> 
> 
> Review request for KDEPIM-Libraries.
> 
> 
> Repository: kdepimlibs
> 
> 
> Description
> -------
> 
> Increase refcnt of each collection added to Favourites, and decrease it when it's removed.
>     
> This fixes an endless fetch-purge loop when user added more than 10 favourite collections (which is a limit for Akonadi::MonitorPrivate::Buffer), which was triggered by the model trying to fit more than 10 collections into 10-sized buffer.
> 
> 
> I don't know whether this is the proper way to fix this problem, but it works and does not seem to have any sideeffects.
> 
> 
> Diffs
> -----
> 
>   akonadi/favoritecollectionsmodel.cpp 884a206088edad5d2699dd8570e3822323e89a27 
> 
> Diff: http://git.reviewboard.kde.org/r/112958/diff/
> 
> 
> Testing
> -------
> 
> Successfully added more than 10 collections to favourites without triggering the problem
> 
> 
> Thanks,
> 
> Dan Vrátil
> 
>

_______________________________________________
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