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

Avoid long loading in attributetable on model change #36194

Merged
merged 2 commits into from
May 14, 2020

Conversation

signedav
Copy link
Contributor

@signedav signedav commented May 5, 2020

This is a minimal changeset to fix #35927 on the backport branches.

The connection from dataChanged to reloadVisible and filterFeatures leaded to very long loading times. It's improved in this master PR #36188.

This here replaces the signal for reloadVisible and filterFeatures with featureAdded of the vector layer. The implementation, that leaded to issues (connecting dataChanged) has been implemented for this case of featureAdded. So this fix should still cover the requirement for this change.

…rFeatures slot instead of datachanged of model since this leaded to unneeded and long reloading after the main model is reloaded

fixes qgis#35927
@signedav signedav added Backport Is a backport of another pull request Bug Either a bug report, or a bug fix. Let's hope for the latter! backport release-3_10 labels May 5, 2020
@github-actions github-actions bot added this to the 3.12.3 milestone May 5, 2020
@signedav
Copy link
Contributor Author

Backport PR for 3.10: #36354

@tudorbarascu
Copy link
Member

Just tested and it's working ok! Thanks @signedav

@signedav
Copy link
Contributor Author

Perfect. Thanks a lot @tudorbarascu
I reopened the backport for 3.10 what is the cherry-pick of this one.

@signedav signedav merged commit 84d7523 into qgis:release-3_12 May 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Is a backport of another pull request 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.

3 participants