From 0d20b58c04e3fa4864993a376037762ea439ca10 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 11 Jul 2013 18:23:20 +0100 Subject: [PATCH] Fix problem with invalid theme path Fixes: https://launchpad.net/bugs/1197376 --- openlp/core/ui/themeform.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/openlp/core/ui/themeform.py b/openlp/core/ui/themeform.py index 2cb7bf55e..5d2349dbc 100644 --- a/openlp/core/ui/themeform.py +++ b/openlp/core/ui/themeform.py @@ -233,7 +233,8 @@ class ThemeForm(QtGui.QWizard, Ui_ThemeWizard): background_image = BackgroundType.to_string(BackgroundType.Image) if self.page(self.currentId()) == self.backgroundPage and \ self.theme.background_type == background_image and \ - self.imageFileEdit.text().isEmpty(): + (self.imageFileEdit.text().isEmpty() or + os.path.exists(self.imageFileEdit.text())): QtGui.QMessageBox.critical(self, translate('OpenLP.ThemeWizard', 'Background Image Empty'), translate('OpenLP.ThemeWizard', 'You have not selected a '