Comment 2 for bug 790726

Revision history for this message
AndreiStefanescu (andysstef) wrote :

Hi,

I figured out that to change the colour, I first have to find out where the TimesPlayed column in the Library table is incremented, however I couldn't find the code doing that. I saw that Library has a function setTimesPlayed and I also saw a function setTrackValueForColumn from BaseSqlTableModel but none of those get called when the value is incremented. I also saw that the value is incremented only once per application session. Shouldn't it be incremented any time the track is played? Could you please tell me where to find the code doing the incrementing?