Skip to content
Permalink
Browse files

Fix use of temporary files for outputs

  • Loading branch information
nyalldawson committed Jun 27, 2017
1 parent e2e829c commit 1e5d773e57f24e61f8d6c88527c6edc81471b330
@@ -39,6 +39,7 @@
QgsProcessingParameterDefinition,
QgsProcessingOutputRasterLayer,
QgsProcessingOutputVectorLayer,
QgsProcessingParameterVectorOutput,
QgsProcessingOutputLayerDefinition,
QgsProcessingParameterFeatureSink,
QgsProcessingParameterRasterOutput,
@@ -115,7 +116,7 @@ def getParamValues(self):
else:
dest_project = None
if not param.flags() & QgsProcessingParameterDefinition.FlagHidden and \
isinstance(param, (QgsProcessingParameterRasterOutput, QgsProcessingParameterFeatureSink, OutputTable)):
isinstance(param, (QgsProcessingParameterRasterOutput, QgsProcessingParameterFeatureSink, QgsProcessingParameterVectorOutput)):
if self.mainWidget.checkBoxes[param.name()].isChecked():
dest_project = QgsProject.instance()

@@ -267,6 +267,8 @@ def getValue(self):
key = None
if self.use_temporary and isinstance(self.parameter, QgsProcessingParameterFeatureSink):
key = 'memory:'
elif self.use_temporary:
key = self.parameter.generateTemporaryDestination()
else:
key = self.leText.text()

0 comments on commit 1e5d773

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