Skip to content
Permalink
Browse files

[processing] fixed field loading in field calculator

fixes #15767
  • Loading branch information
volaya committed Oct 27, 2016
1 parent ba309cb commit dc4f1a4290a762073af508033ea1935a9e5a1dc0
Showing with 3 additions and 1 deletion.
  1. +3 −1 python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py
@@ -90,6 +90,7 @@ def manageGui(self):
self.builder.loadRecent('fieldcalc')

self.initContext()
self.updateLayer()

def initContext(self):
exp_context = self.builder.expressionContext()
@@ -170,7 +171,8 @@ def toggleNewGroup(self, toggled):
def populateFields(self):
if self.layer is None:
return


self.mExistingFieldComboBox.clear()
fields = self.layer.pendingFields()
for f in fields:
self.mExistingFieldComboBox.addItem(f.name())

0 comments on commit dc4f1a4

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