Skip to content

Commit

Permalink
ugh.. only increment self.view_artist_level on a dir click, not a fil…
Browse files Browse the repository at this point in the history
…e click. otherwise sonata could get stuck in an infinite loop on startup
  • Loading branch information
Scott Horowitz committed Jan 2, 2008
1 parent e26cff2 commit d03584f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion sonata.py
Original file line number Diff line number Diff line change
Expand Up @@ -2421,6 +2421,8 @@ def browse(self, widget=None, root='/'):
root = self.view_artist_artist
else:
break
else:
break
elif self.view == self.VIEW_FILESYSTEM:
if root == '/':
# Nothing in the library at all
Expand Down Expand Up @@ -2982,13 +2984,14 @@ def on_browse_row(self, widget, path, column=0):
else:
return
value = self.browserdata.get_value(self.browserdata.get_iter(path), 1)
icon = self.browserdata.get_value(self.browserdata.get_iter(path), 0)
if value == "..":
self.browse_parent_dir(None)
else:
if self.view == self.VIEW_ARTIST:
if value == "/":
self.view_artist_level = 1
else:
elif icon != 'sonata':
self.view_artist_level = self.view_artist_level + 1
self.browse(None, value)

Expand Down

0 comments on commit d03584f

Please sign in to comment.