Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing NoButton enum value to avoid losing relation editor button configuration #43479

Merged
merged 5 commits into from
Jun 1, 2021

Conversation

3nids
Copy link
Member

@3nids 3nids commented Jun 1, 2021

The buttons config has been moved from QgsAttributeEditorRelation to QgsRelationEditorWidget. The logic is that the buttons are a configuration of the default implementation of relation editor (we now have a registry for these).

The enum had to be duplicated in the two classes, I added some documentation to the enums to reflect this and deprecated the former one.

To fix the issue, I added a NoButton (key = 0) to the enum entries, and it works perfectly.

Fixes #43123

src/gui/qgsrelationeditorwidget.h Outdated Show resolved Hide resolved
@3nids 3nids merged commit 570846a into qgis:master Jun 1, 2021
@3nids 3nids deleted the button-enum-dox branch June 1, 2021 07:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Widget parameters not persistent for relations in D&D designer
3 participants