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 crash when switching "apply default value on update" #34428

Merged

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Feb 12, 2020

Fixes #34404

@elpaso elpaso added the Bug Either a bug report, or a bug fix. Let's hope for the latter! label Feb 12, 2020
@elpaso
Copy link
Contributor Author

elpaso commented Feb 12, 2020

@signedav this fixes the crash, but I'm not really sure it is the right approach, can you please have a look?

The source of the issue is that the mDefaultValueDependencies contains references to deleted widgets after a widget has been changed from the layer props dialog.

@elpaso elpaso merged commit 2a0aa03 into qgis:master Feb 14, 2020
@elpaso elpaso deleted the bugfix-gh34404-crash-on-apply-default-value branch February 14, 2020 08:51
@signedav
Copy link
Contributor

Sorry for no feedback. I'm abroad currently. Looks good so far but couldn't go deep into it...

@elpaso
Copy link
Contributor Author

elpaso commented Feb 17, 2020

Take your time, I think you know better than me what's possibly going wrong in that code, but for now at least it won't crash.

elpaso added a commit to elpaso/QGIS that referenced this pull request Feb 17, 2020
…ly-default-value

Fix crash when switching "apply default value on update"
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!
Projects
None yet
Development

Successfully merging this pull request may close these issues.

QGIS crashes when changing "default value" in layer property on a point scratch layer, after editing feature
2 participants