-
Notifications
You must be signed in to change notification settings - Fork 42
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
fix: tooltip crashed while application exit #381
Conversation
fix the clean job of blurnode Issue: linuxdeepin/dtk#193
deepin pr auto review关键摘要:
是否建议立即修改:
|
Synchronize source files from linuxdeepin/dtkdeclarative. Source-pull-request: linuxdeepin/dtkdeclarative#381
Doc Check bot |
/approve |
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: FeiWang1119, kegechen The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@@ -125,6 +125,11 @@ QSGNode *DQuickInWindowBlur::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDa | |||
blurNode->setRenderCallback(onRender, this); | |||
node->appendChildNode(blurNode); | |||
node->setRenderCallback(updateBlurNodeTexture, blurNode); | |||
connect(this, &QObject::destroyed, this, [node, blurNode](){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
正常情况下, quickitem销毁了, node应该也被销毁把, 不需要去重置这个callback,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node可能会比item晚一点销毁,因为渲染可能是在一个新线程里,如果在渲染中销毁了item,它的node是不会立即销毁的。但是这里也不应该这样改,应该在 node 调用 callback之前检查 setRenderCallback中给出来的第二个参数。
@@ -125,6 +125,11 @@ QSGNode *DQuickInWindowBlur::updatePaintNode(QSGNode *oldNode, UpdatePaintNodeDa | |||
blurNode->setRenderCallback(onRender, this); | |||
node->appendChildNode(blurNode); | |||
node->setRenderCallback(updateBlurNodeTexture, blurNode); | |||
connect(this, &QObject::destroyed, this, [node, blurNode](){ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
node可能会比item晚一点销毁,因为渲染可能是在一个新线程里,如果在渲染中销毁了item,它的node是不会立即销毁的。但是这里也不应该这样改,应该在 node 调用 callback之前检查 setRenderCallback中给出来的第二个参数。
暂时close,不是这里的问题 @FeiWang1119 |
fix the clean job of blurnode
Issue: linuxdeepin/dtk#193