mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
[processing] Refactor Fields algorithm: avoid unnecessary confirmation dialogs
This commit is contained in:
parent
fca5238847
commit
387e724b0f
@ -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
|
||||
|
@ -154,4 +154,5 @@ def execAlgorithmDialog(algOrName, parameters={}):
|
||||
canvas.setMapTool(prevMapTool)
|
||||
|
||||
results = dlg.results()
|
||||
dlg.close()
|
||||
return results
|
||||
|
Loading…
x
Reference in New Issue
Block a user