[gnome-music/wip/merge: 295/343] Preserve error icon



commit 71a5f4c766a87e1f5057f0a760037b91f09ceab5
Author: Guillaume Quintard <guillaume quintard gmail com>
Date:   Sat Jul 20 14:20:37 2013 +0200

    Preserve error icon
    
    Just check if the icon is the error one, and if so, don't touch the
    visibility field

 gnomemusic/widgets.py |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/widgets.py b/gnomemusic/widgets.py
index d1ab6e1..80ae0cb 100644
--- a/gnomemusic/widgets.py
+++ b/gnomemusic/widgets.py
@@ -290,7 +290,8 @@ class AlbumWidget(Gtk.EventBox):
                 title = "<span color='grey'>%s</span>" % escapedTitle
                 iconVisible = False
             playlist.set_value(iter, 0, title)
-            playlist.set_value(iter, 9, iconVisible)
+            if(playlist.get_value(iter, 7) != ERROR_ICON_NAME):
+                playlist.set_value(iter, 9, iconVisible)
             iter = playlist.iter_next(iter)
         return False
 


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