mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
parent
86556c227b
commit
7e79398601
@ -59,7 +59,7 @@ def handleAlgorithmResults(alg, progress=None, showResults=True):
|
||||
continue
|
||||
if isinstance(out, (OutputRaster, OutputVector, OutputTable)):
|
||||
try:
|
||||
if out.layer is not None:
|
||||
if hasattr(out, "layer") and out.layer is not None:
|
||||
out.layer.setLayerName(out.description)
|
||||
QgsMapLayerRegistry.instance().addMapLayers([out.layer])
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user