Skip to content

Commit df69026

Browse files
gacarrillorm-kuhn
authored andcommitted
[processing] Refactor Fields algorithm: avoid unnecessary confirmation dialogs
1 parent 2dc76fd commit df69026

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ def setDelegate(self, column_name, delegate):
318318
delegate)
319319

320320
def setLayer(self, layer):
321+
if self.model.layer() == layer:
322+
return
321323
self.model.setLayer(layer)
322324
if layer is None:
323325
return

python/plugins/processing/tools/general.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,5 @@ def execAlgorithmDialog(algOrName, parameters={}):
154154
canvas.setMapTool(prevMapTool)
155155

156156
results = dlg.results()
157+
dlg.close()
157158
return results

0 commit comments

Comments
 (0)