Fix problem with invalid theme path

Fixes: https://launchpad.net/bugs/1197376
This commit is contained in:
Tim Bentley 2013-07-11 18:23:20 +01:00
parent 1f8e9017b2
commit 0d20b58c04
1 changed files with 2 additions and 1 deletions

View File

@ -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 '