Skip to content


[processing] fixed using temporary files in field calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
volaya committed Jun 22, 2015
1 parent 1579a68 commit 5013bb5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 0 additions & 3 deletions python/plugins/processing/algs/qgis/
Expand Up @@ -151,9 +151,6 @@ def checkParameterValuesBeforeExecuting(self):
if newField and len(fieldName) == 0:
return'Field name is not set. Please enter a field name')

outputName = self.getOutputValue(self.OUTPUT_LAYER).strip()
if outputName == '':
return'Output is not set. Please specify valid filename')

def getCustomParametersDialog(self):
return FieldsCalculatorDialog(self)
Expand Up @@ -142,8 +142,8 @@ def selectFile(self):
filename = unicode(files[0])
selectedFileFilter = unicode(fileDialog.selectedNameFilter())
if not filename.lower().endswith(
tuple(re.findall("\*(\.[a-z]{1,5})", fileFilter))):
ext ="\*(\.[a-z]{1,5})", selectedFileFilter)
tuple(re.findall("\*(\.[a-z]{1,10})", fileFilter))):
ext ="\*(\.[a-z]{1,10})", selectedFileFilter)
if ext:
filename = filename +
Expand Down Expand Up @@ -184,8 +184,7 @@ def setParamValues(self):
self.alg.setParameterValue('FORMULA', self.builder.expressionText())
self.alg.setOutputValue('OUTPUT_LAYER', self.leOutputFile.text().strip() or None)

msg = self.alg.checkParameterValuesBeforeExecuting()
if msg:
Expand Down

0 comments on commit 5013bb5

Please sign in to comment.