Skip to content
Permalink
Browse files

Merge pull request #6924 from m-kuhn/avoid_unnecessary_confirmation_d…

…ialogs

Avoid unnecessary confirmation dialogs
  • Loading branch information
m-kuhn committed May 7, 2018
2 parents ba9f27e + ac508d4 commit 9e5cfb0c4ddf50262309be93391a982d23ea310a
@@ -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
@@ -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 9e5cfb0

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