From 98b5c6b1fd97ed40d7bb05898e1deb5ecb8ef461 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 11 Jul 2013 18:49:06 +0100 Subject: [PATCH] A width must have a valid minumum Fixes: https://launchpad.net/bugs/1196926 --- openlp/core/ui/generaltab.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openlp/core/ui/generaltab.py b/openlp/core/ui/generaltab.py index 1a1224360..264ac2ee2 100644 --- a/openlp/core/ui/generaltab.py +++ b/openlp/core/ui/generaltab.py @@ -92,14 +92,14 @@ class GeneralTab(SettingsTab): 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')