- fixed a wrong parentage which can lead to a traceback when you enter a custom service notes, but the service order does not contain any item

bzr-revno: 1462
This commit is contained in:
Andreas Preikschat 2011-04-14 20:09:29 +02:00
commit 8eeffdd063
1 changed files with 1 additions and 0 deletions

View File

@ -222,6 +222,7 @@ class PrintServiceForm(QtGui.QDialog, Ui_PrintServiceDialog):
unicode(datetime.timedelta(seconds=tme)), title)
# Add the custom service notes:
if self.footerTextEdit.toPlainText():
div = self._addChildToParent(u'div', parent=html_data.body)
self._addChildToParent(u'span', translate('OpenLP.ServiceManager',
u'Custom Service Notes:'), div, u'class', u'customNotesTitle')
self._addChildToParent(