Made changes to keep others happy.

This commit is contained in:
Raoul Snyman 2012-09-21 08:42:31 +02:00
parent 2591d24a41
commit 657beb727c

View File

@ -229,10 +229,10 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard):
pixmapHeight + 2 * frameWidth) pixmapHeight + 2 * frameWidth)
def validateCurrentPage(self): def validateCurrentPage(self):
background_image = BackgroundType.to_string(BackgroundType.Image)
if self.page(self.currentId()) == self.backgroundPage and \ if self.page(self.currentId()) == self.backgroundPage and \
self.theme.background_type == \ self.theme.background_type == background_image and \
BackgroundType.to_string(BackgroundType.Image) and \ self.imageFileEdit.text().isEmpty():
unicode(self.imageFileEdit.text()) == u'':
QtGui.QMessageBox.critical(self, QtGui.QMessageBox.critical(self,
translate('OpenLP.ThemeWizard', 'Background Image Empty'), translate('OpenLP.ThemeWizard', 'Background Image Empty'),
translate('OpenLP.ThemeWizard', 'You have not selected a ' translate('OpenLP.ThemeWizard', 'You have not selected a '