From: Andrea <mar...@go...> - 2008-07-28 21:33:15
|
Andrea wrote: > Hi, > > playing with the search feature on the top right I have found the following issue: > Tracks are repeated many times in the list of tracks. > > Ways of reproduce > > 1) mount iPod > 2) select main playlist (i.e. iPod itself) > 3) type jjjjjjjjjjjjjjjjjjjjjj in the search field > 4) (no tracks should appear) > 5) select Podcasts or Photos > 6) select again iPod (still no tracks shown) > 7) delete jjjjjjjjjjjjjjjjjjjjjjjj > 8) when the search field is empty tracks will have been repeated many times > 9) if you select Podcasts or Photos and come back, the correct number of tracks is shown > > If at point 5) I select Photos, then at point 8) I will see more times the same track, wrt if I had > selected Podcasts. > I've had some time and found something, but I am not sure (and it does not fix it completely) When a track is filtered, it is not removed from the GtkTreeModel. In display_tracks.c, this is the function involved void tm_remove_all_tracks () { GtkTreeModel *model = gtk_tree_view_get_model (track_treeview); GtkTreeIter iter; while (gtk_tree_model_get_iter_first (model, &iter)) { GtkTreeIter temp; convert_iter (model, &iter, &temp); gtk_list_store_remove (get_model_as_store (model), &temp); } update_model_view (model); tm_store_col_order (); tm_update_default_sizes (); } Basically, I've switched off the filter during this function and the bug does not appear the first time. But afterwards, it appears again. I would like to get rid of those critical messages from GTK ** (gtkpod:9603): CRITICAL **: track_get_text: assertion `track' failed Which might be involved. Anybody can help? Andrea |