forked from openlp/openlp
Fix problem with invalid theme path
Fixes: https://launchpad.net/bugs/1197376
This commit is contained in:
parent
1f8e9017b2
commit
0d20b58c04
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user