GNOME Bugzilla – Bug 327061
Empty artist remains in browser until rb restart
Last modified: 2006-01-31 15:59:05 UTC
Test case: 1/ browse and select an artist 2/ select all the songs of this artist 3/ delete the songs of this artist. Result 4/ the artist is still present in the browser. Need to restart RB to make it disappear.
The same goes for Genre.
*** Bug 329288 has been marked as a duplicate of this bug. ***
*** Bug 329290 has been marked as a duplicate of this bug. ***
*** Bug 323086 has been marked as a duplicate of this bug. ***
Created attachment 58443 [details] [review] partial patch This fixed part of the problem, that property models weren't updating when an entry changed it's visibility. This makes it work correctly if the browsers are set on All. There seems to be a second issue, that when browsers have things (other than All) selected, they aren't receiving change notification from their query models. I'm not sure why.
When the active query model on a RBEntryView is changed, it calls rhythmdb_query_model_set_connected (FALSE) on the old one, which causes it to ignore entry change events. I'm not really sure why this is, and I don't think anything bad would happen if we removed the notion of query models being 'connected'. I made a change in the iradio source a while ago to keep the 'all' query model connected, for the same reason - so that the iradio genre list would be updated correctly when stations were modified or removed.
Created attachment 58462 [details] [review] updated patch This removed the "connected" property of query models, which fixes the remaining issue.
Patch committed to cvs. This fixes the problems for me.