openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #08271
[Merge] lp:~googol-hush/openlp/trivial into lp:openlp
Andreas Preikschat has proposed merging lp:~googol-hush/openlp/trivial into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
For more details, see:
https://code.launchpad.net/~googol-hush/openlp/trivial/+merge/58939
Hello,
- mark a service as modified when item notes have been changed
Note:
To pass True is not necessary as the default is True.
def setModified(self, modified=True):
--
https://code.launchpad.net/~googol-hush/openlp/trivial/+merge/58939
Your team OpenLP Core is requested to review the proposed merge of lp:~googol-hush/openlp/trivial into lp:openlp.
=== modified file 'openlp/core/ui/servicemanager.py'
--- openlp/core/ui/servicemanager.py 2011-04-17 11:00:44 +0000
+++ openlp/core/ui/servicemanager.py 2011-04-25 08:41:12 +0000
@@ -686,6 +686,7 @@
self.serviceItems[item][u'service_item'].notes = \
self.serviceNoteForm.textEdit.toPlainText()
self.repaintServiceList(item, -1)
+ self.setModified()
def onStartTimeForm(self):
item = self.findServiceItem()[0]
@@ -789,7 +790,7 @@
# Top Item was selected so set the last one
if setLastItem:
lastItem.setSelected(True)
- self.setModified(True)
+ self.setModified()
def onMoveSelectionDown(self):
"""
@@ -811,7 +812,7 @@
serviceIterator += 1
if setSelected:
firstItem.setSelected(True)
- self.setModified(True)
+ self.setModified()
def onCollapseAll(self):
"""
@@ -855,7 +856,7 @@
self.serviceItems.remove(self.serviceItems[item])
self.serviceItems.insert(0, temp)
self.repaintServiceList(0, child)
- self.setModified(True)
+ self.setModified()
def onServiceUp(self):
"""
@@ -867,7 +868,7 @@
self.serviceItems.remove(self.serviceItems[item])
self.serviceItems.insert(item - 1, temp)
self.repaintServiceList(item - 1, child)
- self.setModified(True)
+ self.setModified()
def onServiceDown(self):
"""
@@ -879,7 +880,7 @@
self.serviceItems.remove(self.serviceItems[item])
self.serviceItems.insert(item + 1, temp)
self.repaintServiceList(item + 1, child)
- self.setModified(True)
+ self.setModified()
def onServiceEnd(self):
"""
@@ -891,7 +892,7 @@
self.serviceItems.remove(self.serviceItems[item])
self.serviceItems.insert(len(self.serviceItems), temp)
self.repaintServiceList(len(self.serviceItems) - 1, child)
- self.setModified(True)
+ self.setModified()
def onDeleteFromService(self):
"""
@@ -901,7 +902,7 @@
if item != -1:
self.serviceItems.remove(self.serviceItems[item])
self.repaintServiceList(item - 1, -1)
- self.setModified(True)
+ self.setModified()
def repaintServiceList(self, serviceItem, serviceItemChild):
"""
@@ -1026,7 +1027,7 @@
item[u'service_item'], False, expand=item[u'expanded'])
# Set to False as items may have changed rendering
# does not impact the saved song so True may also be valid
- self.setModified(True)
+ self.setModified()
Receiver.send_message(u'cursor_normal')
def serviceItemUpdate(self, message):
@@ -1037,7 +1038,7 @@
for item in self.serviceItems:
if item[u'service_item']._uuid == uuid:
item[u'service_item'].edit_id = int(editId)
- self.setModified(True)
+ self.setModified()
def replaceServiceItem(self, newItem):
"""
@@ -1053,7 +1054,7 @@
self.repaintServiceList(itemcount + 1, 0)
self.mainwindow.liveController.replaceServiceManagerItem(
newItem)
- self.setModified(True)
+ self.setModified()
def addServiceItem(self, item, rebuild=False, expand=None, replace=False):
"""
@@ -1098,7 +1099,7 @@
if rebuild:
self.mainwindow.liveController.replaceServiceManagerItem(item)
self.dropPosition = 0
- self.setModified(True)
+ self.setModified()
def makePreview(self):
"""
@@ -1235,7 +1236,7 @@
self.serviceItems.remove(serviceItem)
self.serviceItems.insert(endpos, serviceItem)
self.repaintServiceList(endpos, child)
- self.setModified(True)
+ self.setModified()
else:
# we are not over anything so drop
replace = False
Follow ups