Skip to content
Permalink
Browse files

Fix #12182 - In FieldsMapper, emit commitData on expression editor ch…

…ange
  • Loading branch information
arnaud-morvan committed Feb 11, 2015
1 parent ed94aff commit 3c938275ebbb5cde21c3a19f3bc804721c63f1ff
Showing with 3 additions and 4 deletions.
  1. +3 −4 python/plugins/processing/algs/qgis/ui/FieldsMappingPanel.py
@@ -243,7 +243,7 @@ def createEditor(self, parent, option, index):
elif fieldType == QgsExpression:
editor = QgsFieldExpressionWidget(parent)
editor.setLayer(index.model().layer())
# editor.fieldChanged.connect(self.on_expression_fieldChange)
editor.fieldChanged.connect(self.on_expression_fieldChange)

else:
editor = QtGui.QStyledItemDelegate.createEditor(self, parent, option, index)
@@ -291,9 +291,8 @@ def setModelData(self, editor, model, index):
def updateEditorGeometry(self, editor, option, index):
editor.setGeometry(option.rect)

def on_expression_fieldChange(self, fieldName, isValid):
# self.commitData.emit(self.sender())
pass
def on_expression_fieldChange(self, fieldName):
self.commitData.emit(self.sender())


class FieldsMappingPanel(QtGui.QWidget, Ui_Form):

0 comments on commit 3c93827

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