Skip to content

Commit

Permalink
[processing] Refactor Fields algorithm: avoid unnecessary confirmatio…
Browse files Browse the repository at this point in the history
…n dialogs
  • Loading branch information
gacarrillor committed Apr 30, 2018
1 parent fca5238 commit 387e724
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py
Expand Up @@ -325,6 +325,8 @@ def setDelegate(self, column_name, delegate):
delegate)

def setLayer(self, layer):
if self.model.layer() == layer:
return
self.model.setLayer(layer)
if layer is None:
return
Expand Down
1 change: 1 addition & 0 deletions python/plugins/processing/tools/general.py
Expand Up @@ -154,4 +154,5 @@ def execAlgorithmDialog(algOrName, parameters={}):
canvas.setMapTool(prevMapTool)

results = dlg.results()
dlg.close()
return results

0 comments on commit 387e724

Please sign in to comment.