mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix use of temporary files for outputs
This commit is contained in:
parent
e2e829cacf
commit
1e5d773e57
@ -39,6 +39,7 @@ from qgis.core import (QgsProject,
|
||||
QgsProcessingParameterDefinition,
|
||||
QgsProcessingOutputRasterLayer,
|
||||
QgsProcessingOutputVectorLayer,
|
||||
QgsProcessingParameterVectorOutput,
|
||||
QgsProcessingOutputLayerDefinition,
|
||||
QgsProcessingParameterFeatureSink,
|
||||
QgsProcessingParameterRasterOutput,
|
||||
@ -115,7 +116,7 @@ class AlgorithmDialog(AlgorithmDialogBase):
|
||||
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 @@ class DestinationSelectionPanel(BASE, WIDGET):
|
||||
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()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user