mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-15 00:04:00 -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,
|
QgsProcessingParameterDefinition,
|
||||||
QgsProcessingOutputRasterLayer,
|
QgsProcessingOutputRasterLayer,
|
||||||
QgsProcessingOutputVectorLayer,
|
QgsProcessingOutputVectorLayer,
|
||||||
|
QgsProcessingParameterVectorOutput,
|
||||||
QgsProcessingOutputLayerDefinition,
|
QgsProcessingOutputLayerDefinition,
|
||||||
QgsProcessingParameterFeatureSink,
|
QgsProcessingParameterFeatureSink,
|
||||||
QgsProcessingParameterRasterOutput,
|
QgsProcessingParameterRasterOutput,
|
||||||
@ -115,7 +116,7 @@ class AlgorithmDialog(AlgorithmDialogBase):
|
|||||||
else:
|
else:
|
||||||
dest_project = None
|
dest_project = None
|
||||||
if not param.flags() & QgsProcessingParameterDefinition.FlagHidden and \
|
if not param.flags() & QgsProcessingParameterDefinition.FlagHidden and \
|
||||||
isinstance(param, (QgsProcessingParameterRasterOutput, QgsProcessingParameterFeatureSink, OutputTable)):
|
isinstance(param, (QgsProcessingParameterRasterOutput, QgsProcessingParameterFeatureSink, QgsProcessingParameterVectorOutput)):
|
||||||
if self.mainWidget.checkBoxes[param.name()].isChecked():
|
if self.mainWidget.checkBoxes[param.name()].isChecked():
|
||||||
dest_project = QgsProject.instance()
|
dest_project = QgsProject.instance()
|
||||||
|
|
||||||
|
@ -267,6 +267,8 @@ class DestinationSelectionPanel(BASE, WIDGET):
|
|||||||
key = None
|
key = None
|
||||||
if self.use_temporary and isinstance(self.parameter, QgsProcessingParameterFeatureSink):
|
if self.use_temporary and isinstance(self.parameter, QgsProcessingParameterFeatureSink):
|
||||||
key = 'memory:'
|
key = 'memory:'
|
||||||
|
elif self.use_temporary:
|
||||||
|
key = self.parameter.generateTemporaryDestination()
|
||||||
else:
|
else:
|
||||||
key = self.leText.text()
|
key = self.leText.text()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user