Skip to content
Permalink
Browse files

[processing] fixed field loading in field calculator

fixes #15767

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

self.initContext()
self.updateLayer()

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


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

0 comments on commit 472a550

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