Skip to content
Permalink
Browse files

[processing] fix ExtentSelectionPanel's getValue()

  • Loading branch information
nirvn committed Nov 15, 2016
1 parent d237e27 commit c87839f0549f21af0b96e5d2d096ff8ffa346b75
@@ -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 c87839f

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