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
1 changed files with 3 additions and 3 deletions

View File

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