Fix bug #1216785 by casting to unicode before adding to the service.

bzr-revno: 2167
This commit is contained in:
Raoul Snyman 2013-08-26 21:13:33 +01:00 committed by Tim Bentley
commit 6d985964f9
2 changed files with 2 additions and 1 deletions

View File

@ -796,7 +796,7 @@ class ServiceManager(QtGui.QWidget):
self.serviceItems[item][u'service_item'].notes)
if self.serviceNoteForm.exec_():
self.serviceItems[item][u'service_item'].notes = \
self.serviceNoteForm.textEdit.toPlainText()
unicode(self.serviceNoteForm.textEdit.toPlainText())
self.repaintServiceList(item, -1)
self.setModified()

View File

@ -32,6 +32,7 @@ from PyQt4 import QtGui
from openlp.core.lib import translate, SpellTextEdit
from openlp.core.lib.ui import create_button_box
class ServiceNoteForm(QtGui.QDialog):
"""
This is the form that is used to edit the verses of the song.