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

[Backport queued_ltr_backports] qgsdockablewidgethelper: Prevent crash when closing dock #59506

Merged

Conversation

qgis-bot
Copy link
Collaborator

Backport #59481
Authored by: @ptitjano

When closing a 2D canvas dock, QGIS sometimes crashes. This is because
when the widget helper is closed, the canvas is closed. However, some
signals of the canvas widget may still be called after it is
called. Hence, the crash.

This issue is fixed by calling `deleteLater()` instead of `delete` to
ensure a proper deletion which properly takes into account the
signals.
@github-actions github-actions bot added this to the 3.42.0 milestone Nov 19, 2024
@nyalldawson nyalldawson merged commit c43991a into queued_ltr_backports Nov 19, 2024
31 checks passed
@nyalldawson nyalldawson deleted the backport-59481-to-queued_ltr_backports branch November 19, 2024 23:26
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.

3 participants