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

[qtdocgallery] Adjust declarative document gallery life-cycle. JB#59060 #5

Merged
merged 1 commit into from Nov 16, 2022

Conversation

pvuorela
Copy link
Contributor

The Q_GLOBAL_STATIC gets deleted at exit and by backtrace that seems too late for deleting the tracker connection.

So instead couple the life-cycle with the QCoreApplication instance. The QML content shouldn't outlive that.

@spiiroin @Tomin1 @llewelld

Copy link

@spiiroin spiiroin left a comment

Choose a reason for hiding this comment

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

Cosmetic comments, but change itself makes sense

src/imports/gallery/qdeclarativedocumentgallery.cpp Outdated Show resolved Hide resolved
src/imports/gallery/qdeclarativedocumentgallery.cpp Outdated Show resolved Hide resolved
The Q_GLOBAL_STATIC gets deleted at exit and by backtrace that seems
too late for deleting the tracker connection.

So instead couple the life-cycle with the QCoreApplication instance.
The QML content shouldn't outlive that.
@pvuorela pvuorela force-pushed the adjust_declarative_docgallery_lifecycle branch from 676d2b8 to 391a4dd Compare November 16, 2022 14:31
@pvuorela pvuorela merged commit 8a08fc2 into mer-master Nov 16, 2022
@mlehtima mlehtima deleted the adjust_declarative_docgallery_lifecycle branch April 22, 2024 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants