Skip to content
Permalink
Browse files

Merge pull request #3761 from nirvn/processing_parameterextent_fix

[processing] fix ExtentSelectionPanel's getValue()
  • Loading branch information
alexbruy committed Nov 15, 2016
2 parents 6bfd0fd + c87839f commit adcb77266b4194a5000ced62b867b0797b4826f1
@@ -211,7 +211,7 @@ def accept(self):
self.resetGUI()
except AlgorithmDialogBase.InvalidParameterValue as e:
try:
self.buttonBox.accepted.connect(lambda:
self.buttonBox.accepted.connect(lambda e=e:
e.widget.setPalette(QPalette()))
palette = e.widget.palette()
palette.setColor(QPalette.Base, QColor(255, 255, 0))
@@ -153,7 +153,7 @@ def setValueFromRect(self, r):
self.dialog.activateWindow()

def getValue(self):
if str(self.leText.text()).strip() == '':
if str(self.leText.text()).strip() != '':
return str(self.leText.text())
else:
return None

0 comments on commit adcb772

Please sign in to comment.
You can’t perform that action at this time.