Goto current song return early
We should return early if there is no currently playing song in the list.
This commit is contained in:
parent
f8ad68abe5
commit
5e7dc986f9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user