fix: Abnormal hiding of the grouping window#526
Conversation
log: GroupConfigOptDlg was created without setting a parent window. Consequently, the Window Manager (WM) was unaware that this dialog should be placed above the terminal window. When the user clicked the terminal area, the WM brought the terminal to the foreground, obscuring the dialog. Since the finished signal was not triggered, the terminal remained permanently frozen due to setEnabled(false). pms: bug-358805
deepin pr auto review这段代码的修改主要是将 以下是针对这段代码的详细审查意见,包括语法逻辑、代码质量、代码性能和代码安全方面: 1. 语法逻辑
2. 代码质量
3. 代码性能
4. 代码安全
改进建议虽然这段修改已经解决了最核心的内存管理问题,但为了进一步完善代码,建议考虑以下几点:
总结这是一个高质量的修改。它通过引入父子对象关系,利用 Qt 的内存管理机制有效地解决了潜在的内存泄漏和悬空指针风险,符合 Qt 的最佳实践。建议配合设置 |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: JWWTSL, lzwind The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
/forcemerge |
|
This pr force merged! (status: unknown) |
log: GroupConfigOptDlg was created without setting a parent window. Consequently, the Window Manager (WM) was unaware that this dialog should be placed above the terminal window. When the user clicked the terminal area, the WM brought the terminal to the foreground, obscuring the dialog. Since the finished signal was not triggered, the terminal remained permanently frozen due to setEnabled(false).
pms: bug-358805