Skip to content

Commit 472a550

Browse files
committedOct 27, 2016
[processing] fixed field loading in field calculator
fixes #15767 Conflicts: python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py
1 parent e67a47b commit 472a550

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ def manageGui(self):
9191
self.builder.loadRecent('fieldcalc')
9292

9393
self.initContext()
94+
self.updateLayer()
9495

9596
def initContext(self):
9697
exp_context = self.builder.expressionContext()
@@ -171,7 +172,8 @@ def toggleNewGroup(self, toggled):
171172
def populateFields(self):
172173
if self.layer is None:
173174
return
174-
175+
176+
self.mExistingFieldComboBox.clear()
175177
fields = self.layer.fields()
176178
for f in fields:
177179
self.mExistingFieldComboBox.addItem(f.name())

0 commit comments

Comments
 (0)
Please sign in to comment.