openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #21010
[Merge] lp:~trb143/openlp/json-2 into lp:openlp/2.0
Tim Bentley has proposed merging lp:~trb143/openlp/json-2 into lp:openlp/2.0.
Requested reviews:
OpenLP Core (openlp-core)
Related bugs:
Bug #1196926 in OpenLP: "Zero division error when display size set to zero"
https://bugs.launchpad.net/openlp/+bug/1196926
Bug #1197376 in OpenLP: "Typing a path for a theme background causes a key error"
https://bugs.launchpad.net/openlp/+bug/1197376
For more details, see:
https://code.launchpad.net/~trb143/openlp/json-2/+merge/174265
Two bug fixes for 2.0.2
--
https://code.launchpad.net/~trb143/openlp/json-2/+merge/174265
Your team OpenLP Core is requested to review the proposed merge of lp:~trb143/openlp/json-2 into lp:openlp/2.0.
=== modified file 'openlp/core/ui/generaltab.py'
--- openlp/core/ui/generaltab.py 2012-12-30 19:41:24 +0000
+++ openlp/core/ui/generaltab.py 2013-07-11 18:05:34 +0000
@@ -92,14 +92,14 @@
self.monitorLayout.addWidget(self.customWidthLabel, 3, 3)
self.customWidthValueEdit = QtGui.QSpinBox(self.monitorGroupBox)
self.customWidthValueEdit.setObjectName(u'customWidthValueEdit')
- self.customWidthValueEdit.setMaximum(9999)
+ self.customWidthValueEdit.setRange(1, 9999)
self.monitorLayout.addWidget(self.customWidthValueEdit, 4, 3)
self.customHeightLabel = QtGui.QLabel(self.monitorGroupBox)
self.customHeightLabel.setObjectName(u'customHeightLabel')
self.monitorLayout.addWidget(self.customHeightLabel, 3, 4)
self.customHeightValueEdit = QtGui.QSpinBox(self.monitorGroupBox)
self.customHeightValueEdit.setObjectName(u'customHeightValueEdit')
- self.customHeightValueEdit.setMaximum(9999)
+ self.customHeightValueEdit.setRange(1, 9999)
self.monitorLayout.addWidget(self.customHeightValueEdit, 4, 4)
self.displayOnMonitorCheck = QtGui.QCheckBox(self.monitorGroupBox)
self.displayOnMonitorCheck.setObjectName(u'monitorComboBox')
=== modified file 'openlp/core/ui/themeform.py'
--- openlp/core/ui/themeform.py 2013-03-19 19:22:10 +0000
+++ openlp/core/ui/themeform.py 2013-07-11 18:05:34 +0000
@@ -233,7 +233,8 @@
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 '
Follow ups