Goto current song return early

We should return early if there is no currently playing song in the
list.
This commit is contained in:
Bryan Schumaker 2010-11-28 13:54:14 -05:00
parent f8ad68abe5
commit 5e7dc986f9

View File

@ -91,6 +91,8 @@ class ListView(gtk.TreeView):
def goto(self):
id = sources.cur_lib_id
if id == -1:
return
for index, row in enumerate(self.filter_model):
if row[0] == id:
path = index - 10