openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #01221
[Merge] lp:~trb143/openlp/bugs into lp:openlp
Tim Bentley has proposed merging lp:~trb143/openlp/bugs into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Fix NONE appearing as song verses
Delay the hidden window display
Fix missing add status for custom slides
--
https://code.launchpad.net/~trb143/openlp/bugs/+merge/21798
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp/core/lib/songxmlhandler.py'
--- openlp/core/lib/songxmlhandler.py 2010-02-27 15:31:23 +0000
+++ openlp/core/lib/songxmlhandler.py 2010-03-21 14:34:18 +0000
@@ -148,6 +148,8 @@
verse_list = []
for element in iter:
if element.tag == u'verse':
+ if element.text is None:
+ element.text = u''
verse_list.append([element.attrib,
unicode(element.text).decode('unicode-escape')])
return verse_list
=== modified file 'openlp/core/ui/mainwindow.py'
--- openlp/core/ui/mainwindow.py 2010-03-14 23:22:44 +0000
+++ openlp/core/ui/mainwindow.py 2010-03-21 14:34:18 +0000
@@ -67,7 +67,8 @@
"""
Run the thread.
"""
- time.sleep(2)
+ time.sleep(1)
+ Receiver.send_message(u'blank_check')
version = check_latest_version(self.generalConfig, self.app_version)
#new version has arrived
if version != self.app_version:
@@ -493,6 +494,8 @@
QtCore.SIGNAL(u'update_global_theme'), self.defaultThemeChanged)
QtCore.QObject.connect(Receiver.get_receiver(),
QtCore.SIGNAL(u'version_check'), self.versionCheck)
+ QtCore.QObject.connect(Receiver.get_receiver(),
+ QtCore.SIGNAL(u'blank_check'), self.blankCheck)
QtCore.QObject.connect(self.FileNewItem,
QtCore.SIGNAL(u'triggered()'),
self.ServiceManagerContents.onNewService)
@@ -582,6 +585,8 @@
self.activateWindow()
if str_to_bool(self.generalConfig.get_config(u'auto open', False)):
self.ServiceManagerContents.onLoadService(True)
+
+ def blankCheck(self):
if str_to_bool(self.generalConfig.get_config(u'screen blank', False)) \
and str_to_bool(self.generalConfig.get_config(u'blank warning', False)):
self.LiveController.onBlankDisplay(True)
=== modified file 'openlp/plugins/custom/forms/editcustomform.py'
--- openlp/plugins/custom/forms/editcustomform.py 2010-03-09 19:43:11 +0000
+++ openlp/plugins/custom/forms/editcustomform.py 2010-03-21 14:34:18 +0000
@@ -87,6 +87,7 @@
def initialise(self):
self.editAll = False
+ self.AddButton.setEnabled(True)
self.DeleteButton.setEnabled(False)
self.EditButton.setEnabled(False)
self.EditAllButton.setEnabled(True)
Follow ups