[gnome-music/freeze-break] Use correct model var on album widget



commit 3bf6581c2724365d1399d6427d4dbe0c628ac35e
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Thu Sep 12 11:01:42 2013 +0200

    Use correct model var on album widget

 gnomemusic/widgets.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index 7931162..8003e0f 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -145,7 +145,7 @@ class AlbumWidget(Gtk.EventBox):
 
     def _on_item_activated(self, widget, id, path):
         child_path = self.filter.convert_path_to_child_path(path)
-        _iter = self._model.get_iter(child_path)
+        _iter = self.model.get_iter(child_path)
         if(self.model.get_value(_iter, 7) != ERROR_ICON_NAME):
             if (self.iterToClean and self.player.playlistId == self.album):
                 item = self.model.get_value(self.iterToClean, 5)


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