Fix bug #1216785 by casting the notes text to unicode first.

Fixes: https://launchpad.net/bugs/1216785
This commit is contained in:
Raoul Snyman 2013-08-26 21:18:36 +02:00
parent 81cd369bfe
commit 61a5e55d12
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) self.serviceItems[item][u'service_item'].notes)
if self.serviceNoteForm.exec_(): if self.serviceNoteForm.exec_():
self.serviceItems[item][u'service_item'].notes = \ self.serviceItems[item][u'service_item'].notes = \
self.serviceNoteForm.textEdit.toPlainText() unicode(self.serviceNoteForm.textEdit.toPlainText())
self.repaintServiceList(item, -1) self.repaintServiceList(item, -1)
self.setModified() self.setModified()

View File

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