Skip to content

Commit

Permalink
Fix use of temporary files for outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Jun 27, 2017
1 parent e2e829c commit 1e5d773
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 2 additions & 1 deletion python/plugins/processing/gui/AlgorithmDialog.py
Expand Up @@ -39,6 +39,7 @@
QgsProcessingParameterDefinition,
QgsProcessingOutputRasterLayer,
QgsProcessingOutputVectorLayer,
QgsProcessingParameterVectorOutput,
QgsProcessingOutputLayerDefinition,
QgsProcessingParameterFeatureSink,
QgsProcessingParameterRasterOutput,
Expand Down Expand Up @@ -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()

Expand Down
2 changes: 2 additions & 0 deletions python/plugins/processing/gui/DestinationSelectionPanel.py
Expand Up @@ -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()

Expand Down

0 comments on commit 1e5d773

Please sign in to comment.