From d46eca4823442e2a86b19bd81e02e1c3f08b08c2 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Mon, 25 Oct 2010 08:48:32 -0400 Subject: [PATCH] Id 0 == False When checking if we have a song id, we should check against None (id == None). Doing "if id" will return False when id is 0. --- ocarina/label.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ocarina/label.py b/ocarina/label.py index 8dcab090..4f53ff7b 100644 --- a/ocarina/label.py +++ b/ocarina/label.py @@ -48,7 +48,7 @@ class AttrLabel(gtk.Alignment): global lib_find_id global lib_get_attr id = lib_find_id(filepath) - if id: + if id != None: text = str(lib_get_attr(id, self.attr)) if self.other: text = "%s %s" % (self.other, text)