Bug report #21018
Layout variables list not updated when a new variable is added programmatically.
| Status: | Open | ||
|---|---|---|---|
| Priority: | Normal | ||
| Assignee: | - | ||
| Category: | Map Composer/Printing | ||
| Affected QGIS version: | 3.4.3 | Regression?: | No |
| Operating System: | Linux | Easy fix?: | No |
| Pull Request or Patch supplied: | No | Resolution: | |
| Crashes QGIS or corrupts data: | No | Copied to github as #: | 28837 |
Description
When programmatically setting a layout variable using
QgsExpressionContextUtils.setLayoutVariable(layout, 'var_name', 'var_value')
the layout variables list is not updated.
The expression editor correctly shows the new variable.