forked from openlp/openlp
Complete Theme breakage fixing
This commit is contained in:
parent
417d8c3725
commit
54057730f7
@ -201,6 +201,7 @@ class AmendThemeForm(QtGui.QDialog, Ui_AmendThemeDialog):
|
|||||||
#self.theme.background_mode
|
#self.theme.background_mode
|
||||||
self.theme.background_startColor = theme.background_startColor.strip()
|
self.theme.background_startColor = theme.background_startColor.strip()
|
||||||
#self.theme.background_type
|
#self.theme.background_type
|
||||||
|
if theme.display_display:
|
||||||
self.theme.display_display = theme.display_display.strip()
|
self.theme.display_display = theme.display_display.strip()
|
||||||
self.theme.display_horizontalAlign = \
|
self.theme.display_horizontalAlign = \
|
||||||
theme.display_horizontalAlign.strip()
|
theme.display_horizontalAlign.strip()
|
||||||
|
@ -139,9 +139,8 @@ class ThemeManager(QtGui.QWidget):
|
|||||||
def onEditTheme(self):
|
def onEditTheme(self):
|
||||||
item = self.ThemeListWidget.currentItem()
|
item = self.ThemeListWidget.currentItem()
|
||||||
if item is not None:
|
if item is not None:
|
||||||
self.amendThemeForm.setTheme(self.getThemeData(
|
self.amendThemeForm.loadTheme(
|
||||||
item.data(QtCore.Qt.UserRole).toString()))
|
unicode(item.data(QtCore.Qt.UserRole).toString()))
|
||||||
self.amendThemeForm.loadTheme()
|
|
||||||
self.amendThemeForm.exec_()
|
self.amendThemeForm.exec_()
|
||||||
|
|
||||||
def onDeleteTheme(self):
|
def onDeleteTheme(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user