[gnome-music] view: Set album title as Unknown Album if empty in Songs view



commit bd32d7181574916c835d17f91c30e86f3b197568
Author: Arnel A. Borja <arnelborja src gnome org>
Date:   Mon Sep 16 21:41:30 2013 +0800

    view: Set album title as Unknown Album if empty in Songs view
    
    https://bugzilla.gnome.org/show_bug.cgi?id=708159

 gnomemusic/view.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index 63d90e1..8605bf7 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -468,7 +468,7 @@ class Songs(ViewContainer):
     def _on_list_widget_type_render(self, coll, cell, model, _iter, data):
         item = model.get_value(_iter, 5)
         if item:
-            cell.set_property('text', item.get_string(Grl.METADATA_KEY_ALBUM))
+            cell.set_property('text', item.get_string(Grl.METADATA_KEY_ALBUM) or _("Unknown Album"))
 
     def populate(self):
         if grilo.tracker:


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