Skip to content
Permalink
Browse files

Fix resetting fields in Refactor Fields algorithm dialog

  • Loading branch information
nyalldawson committed May 20, 2020
1 parent 169ca65 commit 5cc0f0964bc1b82c9e525f54b64a456b64f52920
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py
@@ -163,15 +163,17 @@ def on_downButton_clicked(self, checked=False):
def on_resetButton_clicked(self, checked=False):
"""Load fields from layer"""
if self.layer:
self.fieldsView.setDestinationFields(self.layer.fields())
self.fieldsView.setSourceFields(self.layer.fields())
self.fieldsView.setDestinationFields(self.layer.fields())

@pyqtSlot(bool, name='on_loadLayerFieldsButton_clicked')
def on_loadLayerFieldsButton_clicked(self, checked=False):
layer = self.layerCombo.currentLayer()
if layer is None:
return

self.fieldsView.setSourceFields(layer.fields())
self.fieldsView.setDestinationFields(layer.fields())


class FieldsMappingWidgetWrapper(WidgetWrapper):

0 comments on commit 5cc0f09

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