summaryrefslogtreecommitdiff
path: root/nephilim/plugins/Lyrics.py
diff options
context:
space:
mode:
authorAnton Khirnov <wyskas@gmail.com>2009-06-09 11:46:07 +0200
committerAnton Khirnov <wyskas@gmail.com>2009-06-09 11:46:07 +0200
commitcfbaa2bde498f61bde1d565c66742eb5875d8f2c (patch)
tree884ce0c6b27f4699542d25c77d1ff56ad2f7f0d8 /nephilim/plugins/Lyrics.py
parent3c6e9a24e29091f5c563c857e603b9d903366bf9 (diff)
Lyrics: clear text if there's no song.
also fix reference to removed function.
Diffstat (limited to 'nephilim/plugins/Lyrics.py')
-rw-r--r--nephilim/plugins/Lyrics.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/nephilim/plugins/Lyrics.py b/nephilim/plugins/Lyrics.py
index d3663e0..e982ee3 100644
--- a/nephilim/plugins/Lyrics.py
+++ b/nephilim/plugins/Lyrics.py
@@ -52,7 +52,7 @@ class wgLyrics(QtGui.QWidget):
def set_lyrics(self, song, lyrics):
if not song:
- return
+ return self.txtView.clear()
if song != self.p.mpclient().current_song():
return
@@ -202,7 +202,7 @@ class Lyrics(Plugin):
self.settings().setValue('lyricname', QVariant(self.lyricname.text()))
self.settings().setValue('store', QVariant(self.store.isChecked()))
self.settings().endGroup()
- self.plugin.o.refresh()
+ self.plugin.refresh()
def get_settings_widget(self):
return self.SettingsWidgetLyrics(self)