[gnome-music/gnome-3-12] view: Set album title as Unknown Album if empty in Playlists view
- From: Vadim Rutkovsky <vrutkovsky src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-music/gnome-3-12] view: Set album title as Unknown Album if empty in Playlists view
- Date: Fri, 4 Apr 2014 13:11:25 +0000 (UTC)
commit a59ab61279c5a49f9d0b59d7bde71f8ffcc1cbb2
Author: Arnel A. Borja <arnelborja src gnome org>
Date: Thu Apr 3 19:15:11 2014 +0800
view: Set album title as Unknown Album if empty in Playlists view
gnomemusic/view.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gnomemusic/view.py b/gnomemusic/view.py
index e6b0419..03f66c7 100644
--- a/gnomemusic/view.py
+++ b/gnomemusic/view.py
@@ -900,7 +900,7 @@ class Playlist(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):
self._init = True
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]