[gnome-music/freeze-break: 17/107] Revert changes on Songs view to fix crashes



commit f1e6eb7910dcf4ae05dd59d52c02da43749a010c
Author: Vadim Rutkovsky <vrutkovs redhat com>
Date:   Mon Sep 2 16:28:27 2013 +0200

    Revert changes on Songs view to fix crashes

 gnomemusic/view.py |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index fa52230..1cbcc11 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -345,9 +345,8 @@ class Songs(ViewContainer):
         self.player.connect('playlist-item-changed', self.update_model)
 
     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)
-        child_iter = self.filter.convert_iter_to_child_iter(_iter)
+        _iter = self.filter.get_iter(path)
+        child_iter = self.filter.convert_iter_to_child_iter(_iter) 
         if self._model.get_value(child_iter, 8) != self.errorIconName:
             self.player.set_playlist('Songs', None, self.filter, _iter, 5)
             self.player.set_playing(True)


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