forked from openlp/openlp
fixed buttons
This commit is contained in:
parent
490e7051bb
commit
42b1b72ff9
@ -110,11 +110,12 @@ class ServiceItemEditForm(QtGui.QDialog, Ui_ServiceItemEditDialog):
|
|||||||
temp = self.itemList[row]
|
temp = self.itemList[row]
|
||||||
self.itemList.remove(self.itemList[row])
|
self.itemList.remove(self.itemList[row])
|
||||||
if direction == u'up':
|
if direction == u'up':
|
||||||
self.itemList.insert(row - 1, temp)
|
row -= 1
|
||||||
else:
|
else:
|
||||||
self.itemList.insert(row + 1, temp)
|
row += 1
|
||||||
|
self.itemList.insert(row, temp)
|
||||||
self.loadData()
|
self.loadData()
|
||||||
self.listWidget.setCurrentRow(row + 1)
|
self.listWidget.setCurrentRow(row)
|
||||||
|
|
||||||
def onCurrentRowChanged(self, row):
|
def onCurrentRowChanged(self, row):
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user