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

When loading a project with pending authentication requests, do not set an active layer to avoid potential crash #5739

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

nirvn
Copy link
Member

@nirvn nirvn commented Oct 16, 2024

The goal of this change is to avoid having QField focus on a layer, triggering a feature form rebuild that might be halted halfway due to authentication being submitted and QField then force reloading the project.

On top of saving a few CPU cycles, it has the potential to avoid obscure threading crashes.

@qfield-fairy
Copy link
Collaborator

Copy link
Collaborator

@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.

Nice one! Code looks good to me.

@nirvn nirvn merged commit d908dd5 into master Oct 17, 2024
25 checks passed
@nirvn nirvn deleted the login_avoid_feature_form branch October 17, 2024 02:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants