[gnome-music: 1/2] reset the duration before updating the album widget.



commit db476f1fa7ab5eec0dc32bfcf7d13f256022cc6d
Author: Sai <suman sai14 gmail com>
Date:   Thu Aug 22 22:28:56 2013 +0530

    reset the duration before updating the album widget.

 gnomemusic/widgets.py |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index 974611e..c493b2e 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -225,6 +225,7 @@ class AlbumWidget(Gtk.EventBox):
             self.update_model(self.player, cached_playlist,
                               self.player.currentTrack)
         else:
+            self.duration = 0
             self._create_model()
             GLib.idle_add(grilo.populate_album_songs, item.get_id(),
                           self._on_populate_album_songs)


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