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 form pop-up suppress on relation-ref widget #47245

Merged

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Feb 8, 2022

Fix #47226

@elpaso elpaso added Forms Bug Either a bug report, or a bug fix. Let's hope for the latter! backport release-3_22 labels Feb 8, 2022
@github-actions github-actions bot added this to the 3.24.0 milestone Feb 8, 2022
@3nids
Copy link
Member

3nids commented Feb 9, 2022

I'm having a hard time understanding this fix.

QgsVectorLayerTools::setForceSuppressFormPopup is supposed to be able to set it both to True/False, no?

In the issue, it looks like the warning coming from the call to QgsEditFormConfig::legacyUpdateRelationWidgetInTabs should come only when opening an old project (pre 3.16).

I am wondering if we rather have some legacy config staying around while it should be dropped once converted.

@elpaso
Copy link
Contributor Author

elpaso commented Feb 9, 2022

I'm having a hard time understanding this fix.

QgsVectorLayerTools::setForceSuppressFormPopup is supposed to be able to set it both to True/False, no?

I don't understand, this is what this fix does: previously the call was only setting it to true and it was impossible to revert it to false.

In the issue, it looks like the warning coming from the call to QgsEditFormConfig::legacyUpdateRelationWidgetInTabs should come only when opening an old project (pre 3.16).

I am wondering if we rather have some legacy config staying around while it should be dropped once converted.

Maybe, but the bug fixed here happened with a new project too so it's unrelated to the legacy settings.

@elpaso elpaso deleted the bugfix-gh47226-force-suppress-form-pop-up branch February 9, 2022 08:16
@3nids
Copy link
Member

3nids commented Feb 9, 2022

I don't understand, this is what this fix does: previously the call was only setting it to true and it was impossible to revert it to false.

Sorry, I read the diff the opposite way 🥴

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Forms
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(Un)force hide form in relation widget
3 participants