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 authored and m-kuhn committed May 3, 2018
1 parent 2dc76fd commit df69026
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
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,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
Original file line number Diff line number Diff line change
Expand Up @@ -154,4 +154,5 @@ def execAlgorithmDialog(algOrName, parameters={}):
canvas.setMapTool(prevMapTool)

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

0 comments on commit df69026

Please sign in to comment.