[processing] Refactor Fields algorithm: avoid unnecessary confirmation dialogs

This commit is contained in:
gacarrillor 2018-04-30 11:14:36 -05:00
parent fca5238847
commit 387e724b0f
2 changed files with 3 additions and 0 deletions

View File

@ -325,6 +325,8 @@ class FieldsMappingPanel(BASE, WIDGET):
delegate)
def setLayer(self, layer):
if self.model.layer() == layer:
return
self.model.setLayer(layer)
if layer is None:
return

View File

@ -154,4 +154,5 @@ def execAlgorithmDialog(algOrName, parameters={}):
canvas.setMapTool(prevMapTool)
results = dlg.results()
dlg.close()
return results