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

[nemo-qml-plugin-calendar] Avoid creating a manager on delete. #56

Merged
merged 1 commit into from May 30, 2023

Conversation

dcaliste
Copy link
Contributor

If the model and the manager are both owned by
the QApplication, they may be deleted in a
random order on application quit. We should
then avoid to recreate a manager if this one
has been already deleted.

This situation is happening in the tests for
instance.

@pvuorela , I encountered this problem in the searchmodel test for instance. It created random segfault or a warning about QEventLoop lacking of a QApplication after the test complete.

Copy link
Member

@rainemak rainemak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added one remark. Other than that looks good.

If the model and the manager are both owned by
the QApplication, they may be deleted in a
random order on application quit. We should
then avoid to recreate a manager if this one
has been already deleted.

This situation is happening in the tests for
instance.
@pvuorela pvuorela merged commit c998cb2 into sailfishos:master May 30, 2023
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.

None yet

3 participants