Counting issues

Seb Ruiz ruiz at kde.org
Sun May 10 03:46:16 CEST 2009


2009/5/10 Jeff Mitchell <mitchell at kde.org>:
> Hey guys (whoever knows about this, probably Seb),
>
> I've noticed that the count of tracks for the sql collection is often
> wrong.  For instance, if you have some tracks, then remove half of them
> from your collection (by removing the folder) then it keeps the old
> count, even across restarts.

Okay, we will have to do some extra testing on this, because I suspect
that the problem here is actually deeper and more insidious. The
counting simply does a QueryMaker evaluation which should be correct.

> What's more, the text that says "Counting" doesn't seem to get updated
> when counting is finished, because it always stays that way until I do
> something that forces a repaint (such as alt-tabbing) to another window.

This is fixable, but a little tricky. From what I can tell, this
occurs because the dataChanged() signal isn't being observed by
anyone, and an update isn't triggered. A repaint is scheduled when
mousing over the widget or causing a page refresh as calls to data()
now contain the new information. I'll look into fixing it. Hopefully
the roundabout complexity of CollectionTreeView and friends doesn't
impede too much.

>
> --Jeff
>
>
> _______________________________________________
> Amarok-devel mailing list
> Amarok-devel at kde.org
> https://mail.kde.org/mailman/listinfo/amarok-devel
>
>



-- 
Seb Ruiz

http://www.sebruiz.net/
http://amarok.kde.org/


More information about the Amarok-devel mailing list