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

Fix QgsAbstractRelationEditorWidget inconsistency NmRelation / NmRelationId #42296

Merged
merged 2 commits into from
Mar 22, 2021

Conversation

domi4484
Copy link
Contributor

QgsAbstractRelationEditorWidget members mNmRelation and mNmRelationId represent the same QgsRelation instance but it was possible to set them to different values which lead to inconsistency.
Also added method nmRelation() to access the nmRelation directly.

mNmRelation and nNmRelationId represent the same QgsRelation instance
but it was possible to set them to different values.
Also added method nmRelation() to access the nmRelation directly.
@github-actions github-actions bot added this to the 3.20.0 milestone Mar 17, 2021
Copy link
Contributor

@suricactus suricactus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I missed to add these methods in the original PR and getting the nmRelationId was unreliable. Thanks for the fix!

@domi4484
Copy link
Contributor Author

I think the failing test is unrelated to the pr... can someone restart it please?

@elpaso
Copy link
Contributor

elpaso commented Mar 18, 2021

@domi4484 I'm working to fix the WMS tests, you can ignore the failure for now.

@elpaso elpaso closed this Mar 18, 2021
@elpaso elpaso reopened this Mar 18, 2021
@m-kuhn m-kuhn merged commit c0633e8 into qgis:master Mar 22, 2021
github-actions bot pushed a commit that referenced this pull request Mar 29, 2021
Fix QgsAbstractRelationEditorWidget inconsistency NmRelation / NmRelationId
3nids pushed a commit that referenced this pull request Mar 29, 2021
Fix QgsAbstractRelationEditorWidget inconsistency NmRelation / NmRelationId

Co-authored-by: Matthias Kuhn <[email protected]>
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.

5 participants