mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
[processing] fixed field loading in field calculator
fixes #15767 Conflicts: python/plugins/processing/algs/qgis/ui/FieldsCalculatorDialog.py
This commit is contained in:
parent
e67a47b9ab
commit
472a550168
@ -91,6 +91,7 @@ class FieldsCalculatorDialog(BASE, WIDGET):
|
||||
self.builder.loadRecent('fieldcalc')
|
||||
|
||||
self.initContext()
|
||||
self.updateLayer()
|
||||
|
||||
def initContext(self):
|
||||
exp_context = self.builder.expressionContext()
|
||||
@ -171,7 +172,8 @@ class FieldsCalculatorDialog(BASE, WIDGET):
|
||||
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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user