Skip to content

Commit

Permalink
Fixed a bug in the moveDown function.
Browse files Browse the repository at this point in the history
  • Loading branch information
gbip committed Jun 12, 2016
1 parent 5be236c commit 2983608
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions main.py
Expand Up @@ -214,17 +214,15 @@ def exitDialog(self):

def moveUp(self):
selected = self._widgetList[-1].curselection()
if selected > 1:
if selected:
self._settings.cover.permuteTitle(selected[0]-1, selected[0])
self.updateOrderList()
self.updateOrderList()

def moveDown(self):
selected = self._widgetList[-1].curselection()
if selected > 1:
if selected[0] < len(self.settings.cover.fileList)-1:
self._settings.cover.permuteTitle(selected[0] + 1, selected[0])
self.updateOrderList()
bleuh = self._settings.displayArtist
print(bleuh)
self.updateOrderList()

def updateOrderList(self):
listBox = self._widgetList.pop()
Expand Down

0 comments on commit 2983608

Please sign in to comment.