Fix up custom plugin issues

This commit is contained in:
Tim Bentley 2009-12-16 17:54:45 +00:00
parent e4e06dd23b
commit 0cdc827a1d
2 changed files with 2 additions and 1 deletions

View File

@ -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')))

View File

@ -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: