summaryrefslogtreecommitdiff
path: root/nephilim
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-03-16 08:06:58 +0100
committerAnton Khirnov <wyskas@gmail.com>2009-03-16 08:06:58 +0100
commiteb95cee1c683a25a5aaa764442241c8109fe3470 (patch)
tree5621e02dbf581f74f489201a177420e8af2ab51a /nephilim
parent8b9ed85df5090cabe2d176e87b1ffa0f10372051 (diff)
Songinfo: 100l - don't get song tags if there is no song.
Diffstat (limited to 'nephilim')
-rw-r--r--nephilim/plugins/Songinfo.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/nephilim/plugins/Songinfo.py b/nephilim/plugins/Songinfo.py
index 84ed8cc..c450c4d 100644
--- a/nephilim/plugins/Songinfo.py
+++ b/nephilim/plugins/Songinfo.py
@@ -16,7 +16,6 @@ class Songinfo(Plugin):
def _get_dock_widget(self):
return self._create_dock(self.o)
-
class SonginfoWidget(QtGui.QWidget):
plugin = None
labels = {}
@@ -39,6 +38,6 @@ class SonginfoWidget(QtGui.QWidget):
if not song:
for item in self.labels:
self.labels[item].setText('<b>%s</b>:'%item)
-
- for item in self.labels:
- self.labels[item].setText('<b>%s</b>: %s'%(item, unicode(song.tag(item))))
+ else:
+ for item in self.labels:
+ self.labels[item].setText('<b>%s</b>: %s'%(item, unicode(song.tag(item))))