forked from openlp/openlp
Fix service manager DnD (Bug #595671)
This commit is contained in:
parent
5dc87d3ede
commit
8382ea5303
@ -927,13 +927,9 @@ class ServiceManager(QtGui.QWidget):
|
|||||||
endpos = len(self.serviceItems)
|
endpos = len(self.serviceItems)
|
||||||
else:
|
else:
|
||||||
endpos = self._getParentItemData(item) - 1
|
endpos = self._getParentItemData(item) - 1
|
||||||
if endpos < startpos:
|
|
||||||
newpos = endpos
|
|
||||||
else:
|
|
||||||
newpos = endpos + 1
|
|
||||||
serviceItem = self.serviceItems[startpos]
|
serviceItem = self.serviceItems[startpos]
|
||||||
self.serviceItems.remove(serviceItem)
|
self.serviceItems.remove(serviceItem)
|
||||||
self.serviceItems.insert(newpos, serviceItem)
|
self.serviceItems.insert(endpos, serviceItem)
|
||||||
self.repaintServiceList(endpos, startCount)
|
self.repaintServiceList(endpos, startCount)
|
||||||
else:
|
else:
|
||||||
#we are not over anything so drop
|
#we are not over anything so drop
|
||||||
|
Loading…
Reference in New Issue
Block a user