[processing][grass] Fix skipped outputs are still added in grass commands

This commit is contained in:
Nyall Dawson 2018-08-09 10:33:08 +10:00
parent 526e590c8d
commit 113e16351d

View File

@ -633,6 +633,7 @@ class Grass7Algorithm(QgsProcessingAlgorithm):
uniqueBasename = outName + self.uniqueSuffix
command += ' {}={}'.format(outName, uniqueBasename)
else:
if outName in parameters and parameters[outName] is not None:
# We add an output name to make sure it is unique if the session
# uses this algorithm several times.
#value = self.parameterAsOutputLayer(parameters, outName, context)