Skip to content

Commit 5cc0f09

Browse files
committedMay 21, 2020
Fix resetting fields in Refactor Fields algorithm dialog
1 parent 169ca65 commit 5cc0f09

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,17 @@ def on_downButton_clicked(self, checked=False):
163163
def on_resetButton_clicked(self, checked=False):
164164
"""Load fields from layer"""
165165
if self.layer:
166-
self.fieldsView.setDestinationFields(self.layer.fields())
167166
self.fieldsView.setSourceFields(self.layer.fields())
167+
self.fieldsView.setDestinationFields(self.layer.fields())
168168

169169
@pyqtSlot(bool, name='on_loadLayerFieldsButton_clicked')
170170
def on_loadLayerFieldsButton_clicked(self, checked=False):
171171
layer = self.layerCombo.currentLayer()
172172
if layer is None:
173173
return
174+
174175
self.fieldsView.setSourceFields(layer.fields())
176+
self.fieldsView.setDestinationFields(layer.fields())
175177

176178

177179
class FieldsMappingWidgetWrapper(WidgetWrapper):

0 commit comments

Comments
 (0)
Please sign in to comment.