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

fix: resident floating message cannot be closed #628

Merged
merged 1 commit into from
Jan 2, 2025

Conversation

rb-union
Copy link
Contributor

@rb-union rb-union commented Dec 30, 2024

windowHandle() is not created by default,
use close() instead.

Bug: PMS-297669

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Dec 30, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#628
@rb-union
Copy link
Contributor Author

/reviewer @kegechen @18202781743 @mhduiy

windowHandle() is not created by default,
use close() instead.

Bug: PMS-297669
@deepin-ci-robot
Copy link
Contributor

deepin pr auto review

关键摘要:

  • q->close(); 直接调用 close() 方法,可能缺少对 windowHandle() 的检查,确保窗口句柄存在。
  • q->connect 中的 lambda 表达式捕获 q,但没有使用 = & 来捕获 q 的引用,可能会导致不必要的拷贝。

是否建议立即修改:

deepin-ci-robot added a commit to linuxdeepin/dtk6widget that referenced this pull request Dec 30, 2024
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#628
@deepin-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 18202781743, mhduiy, rb-union

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@rb-union
Copy link
Contributor Author

rb-union commented Jan 2, 2025

/forcemerge

@deepin-bot
Copy link
Contributor

deepin-bot bot commented Jan 2, 2025

This pr force merged! (status: unstable)

@deepin-bot deepin-bot bot merged commit fb8711b into linuxdeepin:master Jan 2, 2025
19 of 21 checks passed
18202781743 pushed a commit to linuxdeepin/dtk6widget that referenced this pull request Jan 2, 2025
Synchronize source files from linuxdeepin/dtkwidget.

Source-pull-request: linuxdeepin/dtkwidget#628
rb-union added a commit to rb-union/deepin-editor that referenced this pull request Jan 2, 2025
See linuxdeepin/dtkwidget#628
The DFloatingMessage not trigger close() now,
wait for DtkWidget integration.

Log: Toast cannot be closed.
Bug: https://pms.uniontech.com/bug-view-297669.html
rb-union added a commit to linuxdeepin/deepin-editor that referenced this pull request Jan 2, 2025
See linuxdeepin/dtkwidget#628
The DFloatingMessage not trigger close() now,
wait for DtkWidget integration.

Log: Toast cannot be closed.
Bug: https://pms.uniontech.com/bug-view-297669.html
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.

4 participants