From 61a5e55d1208dccd645637579060edf1c13a903e Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Mon, 26 Aug 2013 21:18:36 +0200 Subject: [PATCH] Fix bug #1216785 by casting the notes text to unicode first. Fixes: https://launchpad.net/bugs/1216785 --- openlp/core/ui/servicemanager.py | 2 +- openlp/core/ui/servicenoteform.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/core/ui/servicemanager.py b/openlp/core/ui/servicemanager.py index 7c9098fa6..e6f00878f 100644 --- a/openlp/core/ui/servicemanager.py +++ b/openlp/core/ui/servicemanager.py @@ -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() diff --git a/openlp/core/ui/servicenoteform.py b/openlp/core/ui/servicenoteform.py index 46e2de9e6..1ad562a4a 100644 --- a/openlp/core/ui/servicenoteform.py +++ b/openlp/core/ui/servicenoteform.py @@ -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.