From 5e7dc986f900472800989c37fc4398d7cb06e237 Mon Sep 17 00:00:00 2001 From: Bryan Schumaker Date: Sun, 28 Nov 2010 13:54:14 -0500 Subject: [PATCH] Goto current song return early We should return early if there is no currently playing song in the list. --- ocarina/source.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ocarina/source.py b/ocarina/source.py index 5918c1bd..b108961d 100644 --- a/ocarina/source.py +++ b/ocarina/source.py @@ -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