forked from openlp/openlp
- do not set a service modified when using the up/down arrows to change the selected service item
- only set the service modified when an item is selected while using the 'move button' and 'delete button'
This commit is contained in:
parent
69ef6297e7
commit
b51f9b2a0c
@ -802,7 +802,6 @@ class ServiceManager(QtGui.QWidget):
|
||||
# Top Item was selected so set the last one
|
||||
if setLastItem:
|
||||
lastItem.setSelected(True)
|
||||
self.setModified()
|
||||
|
||||
def onMoveSelectionDown(self):
|
||||
"""
|
||||
@ -824,7 +823,6 @@ class ServiceManager(QtGui.QWidget):
|
||||
serviceIterator += 1
|
||||
if setSelected:
|
||||
firstItem.setSelected(True)
|
||||
self.setModified()
|
||||
|
||||
def onCollapseAll(self):
|
||||
"""
|
||||
@ -863,7 +861,7 @@ class ServiceManager(QtGui.QWidget):
|
||||
Move the current ServiceItem to the top of the list.
|
||||
"""
|
||||
item, child = self.findServiceItem()
|
||||
if item < len(self.serviceItems) and item is not -1:
|
||||
if item < len(self.serviceItems) and item != -1:
|
||||
temp = self.serviceItems[item]
|
||||
self.serviceItems.remove(self.serviceItems[item])
|
||||
self.serviceItems.insert(0, temp)
|
||||
@ -887,7 +885,7 @@ class ServiceManager(QtGui.QWidget):
|
||||
Move the current ServiceItem one position down in the list.
|
||||
"""
|
||||
item, child = self.findServiceItem()
|
||||
if item < len(self.serviceItems) and item is not -1:
|
||||
if item < len(self.serviceItems) and item != -1:
|
||||
temp = self.serviceItems[item]
|
||||
self.serviceItems.remove(self.serviceItems[item])
|
||||
self.serviceItems.insert(item + 1, temp)
|
||||
@ -899,7 +897,7 @@ class ServiceManager(QtGui.QWidget):
|
||||
Move the current ServiceItem to the bottom of the list.
|
||||
"""
|
||||
item, child = self.findServiceItem()
|
||||
if item < len(self.serviceItems) and item is not -1:
|
||||
if item < len(self.serviceItems) and item != -1:
|
||||
temp = self.serviceItems[item]
|
||||
self.serviceItems.remove(self.serviceItems[item])
|
||||
self.serviceItems.insert(len(self.serviceItems), temp)
|
||||
|
Loading…
Reference in New Issue
Block a user