[gnome-music] Fix changing from one album to another to not screw up with the "playing" playlist reference.



commit 8dd136e22c9015ff525581c5de286b7504e22611
Author: Seif Lotfy <seif lotfy com>
Date:   Mon May 27 14:58:20 2013 +0200

    Fix changing from one album to another to not screw up with
    the "playing" playlist reference.
    
    Fixes #701022

 src/widgets.js |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
---
diff --git a/src/widgets.js b/src/widgets.js
index 1baccaa..f2b0c22 100644
--- a/src/widgets.js
+++ b/src/widgets.js
@@ -219,7 +219,16 @@ const AlbumWidget = new Lang.Class({
             this.model = cachedPlaylist;
             this.updateModel(this.player, cachedPlaylist, this.player.currentTrack);
         } else {
-            this.model.clear();
+            this.model = Gtk.ListStore.new([
+                GObject.TYPE_STRING, /*title*/
+                GObject.TYPE_STRING,
+                GObject.TYPE_STRING,
+                GObject.TYPE_STRING,
+                GdkPixbuf.Pixbuf,    /*icon*/
+                GObject.TYPE_OBJECT, /*song object*/
+                GObject.TYPE_BOOLEAN,/*icon shown*/
+                GObject.TYPE_STRING,
+            ]);
             var tracks = [];
             grilo.getAlbumSongs(item.get_id(), Lang.bind(this, function (source, prefs, track) {
                 if (track != null) {


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