Skip to content

Commit

Permalink
fix auto populating when input param is QgsProcessingParameterMapLayer
Browse files Browse the repository at this point in the history
  • Loading branch information
nicogodet authored and nyalldawson committed Jun 1, 2021
1 parent c8004cb commit 2e5e626
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion python/plugins/processing/gui/BatchOutputSelectionPanel.py
Expand Up @@ -31,6 +31,7 @@
QgsProcessingParameterFeatureSource,
QgsProcessingParameterVectorLayer,
QgsProcessingParameterMultipleLayers,
QgsProcessingParameterMapLayer,
QgsProcessingParameterBoolean,
QgsProcessingParameterEnum,
QgsProject,
Expand Down Expand Up @@ -105,7 +106,8 @@ def showSelectionDialog(self):
if isinstance(param, (QgsProcessingParameterRasterLayer,
QgsProcessingParameterFeatureSource,
QgsProcessingParameterVectorLayer,
QgsProcessingParameterMultipleLayers)):
QgsProcessingParameterMultipleLayers,
QgsProcessingParameterMapLayer)):
if isinstance(v, QgsMapLayer):
s = v.name()
else:
Expand Down

0 comments on commit 2e5e626

Please sign in to comment.