[gnome-music] playlists: duplicates in playlists sidebar



commit de7f4c5caff164be48ab45aaf28b7e228374d86c
Author: Prashant Tyagi <prashanttyagi221295 gmail com>
Date:   Wed Feb 17 16:07:45 2016 +0530

    playlists: duplicates in playlists sidebar
    
    This is to remove duplicate playlist in playlists
    sidebar that happens when playlist is created before
    first load.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=744829

 gnomemusic/view.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index bb9b0d5..3f5c852 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -1288,6 +1288,7 @@ class Playlist(ViewContainer):
     @log
     def populate(self):
         if grilo.tracker:
+            self.playlists_model.clear()
             GLib.idle_add(grilo.populate_playlists, self._offset,
                           self._add_playlist_item)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]