mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04: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.builder.loadRecent('fieldcalc')
|
||||||
|
|
||||||
self.initContext()
|
self.initContext()
|
||||||
|
self.updateLayer()
|
||||||
|
|
||||||
def initContext(self):
|
def initContext(self):
|
||||||
exp_context = self.builder.expressionContext()
|
exp_context = self.builder.expressionContext()
|
||||||
@ -172,6 +173,7 @@ class FieldsCalculatorDialog(BASE, WIDGET):
|
|||||||
if self.layer is None:
|
if self.layer is None:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
self.mExistingFieldComboBox.clear()
|
||||||
fields = self.layer.fields()
|
fields = self.layer.fields()
|
||||||
for f in fields:
|
for f in fields:
|
||||||
self.mExistingFieldComboBox.addItem(f.name())
|
self.mExistingFieldComboBox.addItem(f.name())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user