Skip to content

Commit

Permalink
[processing] fixed field loading in field calculator
Browse files Browse the repository at this point in the history
fixes #15767

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

self.initContext()
self.updateLayer()

def initContext(self):
exp_context = self.builder.expressionContext()
Expand Down Expand Up @@ -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())
Expand Down

0 comments on commit 472a550

Please sign in to comment.