Skip to content
Permalink
Browse files

Merge pull request #6895 from gacarrillor/avoid_unnecessary_confirmat…

…ion_dialogs

[processing] Refactor Fields algorithm: avoid unnecessary confirmation dialogs
  • Loading branch information
m-kuhn committed May 3, 2018
2 parents 12183e9 + f07cd2f commit ddd12e2bf269f96c055332c51c73e7f9585c5d9f
@@ -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
@@ -154,4 +154,6 @@ def execAlgorithmDialog(algOrName, parameters={}):
canvas.setMapTool(prevMapTool)

results = dlg.results()
# make sure the dialog is destroyed and not only hidden on pressing Esc
dlg.close()
return results

0 comments on commit ddd12e2

Please sign in to comment.
You can’t perform that action at this time.