Skip to content
Permalink
Browse files
typo
  • Loading branch information
nicogodet authored and nyalldawson committed Jun 23, 2021
1 parent 9d1f56f commit f213887d75c2c82f2cfcecb274d4b032c7256e13
Showing with 4 additions and 3 deletions.
  1. +4 −3 python/plugins/processing/gui/BatchPanel.py
@@ -270,9 +270,10 @@ def showDirectorySelectionDialog(self):

p = pp.as_posix()

if isinstance(self.parameterDefinition, QgsProcessingParameterRasterLayer) or \
(isinstance(self.parameterDefinition,
QgsProcessingParameterMultipleLayers) and self.param.layerType() == QgsProcessing.TypeRaster):
if isinstance(self.parameterDefinition, QgsProcessingParameterRasterLayer) or (
isinstance(self.parameterDefinition, QgsProcessingParameterMultipleLayers)
and self.parameterDefinition.layerType() == QgsProcessing.TypeRaster
):
if not QgsRasterLayer.isValidRasterFileName(p):
continue

0 comments on commit f213887

Please sign in to comment.