insert missing spaces

This commit is contained in:
rimach 2012-03-20 22:25:53 +01:00
parent 8a029daf11
commit a0769ce544

View File

@ -160,7 +160,7 @@ class MediaTab(SettingsTab):
item = self.playerOrderlistWidget.takeItem(row)
self.playerOrderlistWidget.insertItem(row - 1, item)
self.playerOrderlistWidget.setCurrentRow(row - 1)
self.usedPlayers.insert(row-1, self.usedPlayers.pop(row))
self.usedPlayers.insert(row - 1, self.usedPlayers.pop(row))
def onDownButtonClicked(self):
row = self.playerOrderlistWidget.currentRow()
@ -169,7 +169,7 @@ class MediaTab(SettingsTab):
item = self.playerOrderlistWidget.takeItem(row)
self.playerOrderlistWidget.insertItem(row + 1, item)
self.playerOrderlistWidget.setCurrentRow(row + 1)
self.usedPlayers.insert(row+1, self.usedPlayers.pop(row))
self.usedPlayers.insert(row + 1, self.usedPlayers.pop(row))
def load(self):
if self.savedUsedPlayers: