diff --git a/openlp/core/ui/amendthemeform.py b/openlp/core/ui/amendthemeform.py index 04e4417af..c16368e36 100644 --- a/openlp/core/ui/amendthemeform.py +++ b/openlp/core/ui/amendthemeform.py @@ -201,7 +201,8 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog): #self.theme.background_mode self.theme.background_startColor = theme.background_startColor.strip() #self.theme.background_type - self.theme.display_display = theme.display_display.strip() + if theme.display_display: + self.theme.display_display = theme.display_display.strip() self.theme.display_horizontalAlign = \ theme.display_horizontalAlign.strip() self.theme.display_outline = str_to_bool(theme.display_outline) diff --git a/openlp/core/ui/thememanager.py b/openlp/core/ui/thememanager.py index 8d5d9514b..9bfc236c9 100644 --- a/openlp/core/ui/thememanager.py +++ b/openlp/core/ui/thememanager.py @@ -139,9 +139,8 @@ class ThemeManager(QtGui.QWidget): def onEditTheme(self): item = self.ThemeListWidget.currentItem() if item is not None: - self.amendThemeForm.setTheme(self.getThemeData( - item.data(QtCore.Qt.UserRole).toString())) - self.amendThemeForm.loadTheme() + self.amendThemeForm.loadTheme( + unicode(item.data(QtCore.Qt.UserRole).toString())) self.amendThemeForm.exec_() def onDeleteTheme(self):