Fix up theme override position bugs

Fixes: https://launchpad.net/bugs/710065
This commit is contained in:
Tim Bentley 2011-01-30 10:27:12 +00:00
parent 336730d943
commit 83ac7c6b29
2 changed files with 7 additions and 2 deletions

View File

@ -244,6 +244,7 @@ class MainDisplay(DisplayWidget):
Used after Image plugin has changed the background Used after Image plugin has changed the background
""" """
log.debug(u'resetImage') log.debug(u'resetImage')
a=c
if hasattr(self, u'serviceItem'): if hasattr(self, u'serviceItem'):
self.displayImage(self.serviceItem.bg_image_bytes) self.displayImage(self.serviceItem.bg_image_bytes)
else: else:

View File

@ -272,14 +272,18 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
def onMainPositionCheckBoxStateChanged(self, value): def onMainPositionCheckBoxStateChanged(self, value):
""" """
Change state as Main Area Position check box changed Change state as Main Area Position check box changed
NOTE the font_main_override is the inverse of the check box value
""" """
self.theme.font_main_override = (value == QtCore.Qt.Checked) if self.updateThemeAllowed:
self.theme.font_main_override = not (value == QtCore.Qt.Checked)
def onFooterPositionCheckBoxStateChanged(self, value): def onFooterPositionCheckBoxStateChanged(self, value):
""" """
Change state as Footer Area Position check box changed Change state as Footer Area Position check box changed
NOTE the font_footer_override is the inverse of the check box value
""" """
self.theme.font_footer_override = (value == QtCore.Qt.Checked) if self.updateThemeAllowed:
self.theme.font_footer_override = not (value == QtCore.Qt.Checked)
def exec_(self, edit=False): def exec_(self, edit=False):
""" """