From 657beb727c774159a7f9d0a342e98d74bd0a5df7 Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Fri, 21 Sep 2012 08:42:31 +0200 Subject: [PATCH] Made changes to keep others happy. --- openlp/core/ui/themeform.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openlp/core/ui/themeform.py b/openlp/core/ui/themeform.py index 3f1775f45..8bf194cab 100644 --- a/openlp/core/ui/themeform.py +++ b/openlp/core/ui/themeform.py @@ -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 '