From 0cdc827a1d8fcedae38014dcbb26f05bafa14d6f Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Wed, 16 Dec 2009 17:54:45 +0000 Subject: [PATCH] Fix up custom plugin issues --- openlp/core/lib/songxmlhandler.py | 1 + openlp/plugins/custom/forms/editcustomform.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/core/lib/songxmlhandler.py b/openlp/core/lib/songxmlhandler.py index d079c305c..78c7b1e98 100644 --- a/openlp/core/lib/songxmlhandler.py +++ b/openlp/core/lib/songxmlhandler.py @@ -134,6 +134,7 @@ class SongXMLParser(object): ``xml`` The XML of the song to be parsed. """ + self.song_xml = None try: self.song_xml = ElementTree( element=XML(unicode(xml).encode('unicode-escape'))) diff --git a/openlp/plugins/custom/forms/editcustomform.py b/openlp/plugins/custom/forms/editcustomform.py index e238b42c7..7c810e727 100644 --- a/openlp/plugins/custom/forms/editcustomform.py +++ b/openlp/plugins/custom/forms/editcustomform.py @@ -106,7 +106,7 @@ class EditCustomForm(QtGui.QDialog, Ui_customEditDialog): for themename in themelist: self.ThemeComboBox.addItem(themename) - def loadCustom(self, id, preview): + def loadCustom(self, id, preview=False): self.customSlide = CustomSlide() self.initialise() if id != 0: