After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 744829 - Creating playlists before first load of Playlists view --> duplicates in Playlists sidebar
Creating playlists before first load of Playlists view --> duplicates in Play...
Status: RESOLVED FIXED
Product: gnome-music
Classification: Applications
Component: general
unspecified
Other other
: Normal normal
: ---
Assigned To: gnome-music-maint
gnome-music-maint
Depends on:
Blocks:
 
 
Reported: 2015-02-19 23:31 UTC by Maia
Modified: 2016-02-17 13:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
A patch to fix this problem (874 bytes, patch)
2016-02-17 10:56 UTC, Prashant Tyagi
committed Details | Review

Description Maia 2015-02-19 23:31:01 UTC
When user creates new playlists before they have loaded the Playlists view (i.e. between starting the program and activating Playlists view), any new playlists populate twice in the Playlists sidebar.
Comment 1 Prashant Tyagi 2016-02-17 07:16:22 UTC
Maia i am taking this bug if anyone already working on it please let me know.
Comment 2 Prashant Tyagi 2016-02-17 10:56:05 UTC
Created attachment 321473 [details] [review]
A patch to fix this problem

This bug is created beacause when a new playlist is added it simultaneously added
to playlists model and the database of the gnome-music. when first time playlists is loaded it added all playlist from tracker to the playlists model. so if a playlist created before loading playlists first time it creates duplicate.when playlists are fetched from the tracker i clear the model 
so that it doesnt have duplicates.
Comment 3 Felipe Borges 2016-02-17 13:29:20 UTC
Review of attachment 321473 [details] [review]:

makes sense.