Skip to content

Commit dc4f1a4

Browse files
committed
[processing] fixed field loading in field calculator
fixes #15767
1 parent ba309cb commit dc4f1a4

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
@@ -90,6 +90,7 @@ def manageGui(self):
9090
self.builder.loadRecent('fieldcalc')
9191

9292
self.initContext()
93+
self.updateLayer()
9394

9495
def initContext(self):
9596
exp_context = self.builder.expressionContext()
@@ -170,7 +171,8 @@ def toggleNewGroup(self, toggled):
170171
def populateFields(self):
171172
if self.layer is None:
172173
return
173-
174+
175+
self.mExistingFieldComboBox.clear()
174176
fields = self.layer.pendingFields()
175177
for f in fields:
176178
self.mExistingFieldComboBox.addItem(f.name())

0 commit comments

Comments
 (0)