Merged
Conversation
Commented out QSaveFile usage in the save method due to issues with file permissions in certain cases. The code now directly uses QFile for saving files. This change is intended to address potential problems with long filenames and ensure smoother file saving operations. Log: Temporarily disable QSaveFile in TextFileSaver to prevent permission issues. Bug: https://pms.uniontech.com/bug-view-327987.html
After invoking QTimer, it is necessary to check if "this" has been destroyed before accessing its members to avoid null pointer exceptions. fix: QTimer调用后的空指针异常 QTimer调用后,需要判断this是否已经被销毁,然后再使用this的成员,避免空指针异常。 Bug: https://pms.uniontech.com/bug-view-329587.html
When the application starts, it needs to first determine whether to restore tabs. fix: 不保留标签页功能未生效。 应用启动的时候,需要先判断是否需要恢复标签页。
不保留标签页功能未生效,因为历史上的一条提交引入了错误代码导致提前返回了,导致历史文件记录没有被清空。 revert 9ce896a. Bug: https://pms.uniontech.com/bug-view-341299.html
调整关闭窗口时保存文件的逻辑。 在【保留关闭前的页签】勾选后,普通情况下不提醒保存文件,当本地文件被重命名或删除时提醒保存文件,以确保文件不丢失。 Bug: https://pms.uniontech.com/bug-view-315439.html
调整关闭窗口时对草稿文件的处理。 初次开启的草稿文件,因为还没有落盘,所以获取到的文件路径为空,此时不应该返回false,而应该继续循环。 Bug: https://pms.uniontech.com/bug-view-315439.html
按照DDE的要求,setDocName()函数中传入的字符串不能是绝对路径也不带扩展名。 Revert b85b9d2. Bug: https://pms.uniontech.com/bug-view-329561.html https://pms.uniontech.com/bug-view-329547.html
There was a problem hiding this comment.
Sorry @pppanghu77, you have reached your weekly rate limit of 500000 diff characters.
Please try again later or upgrade to continue using Sourcery
deepin pr auto review我来对这段代码进行审查和分析:
这些修改总体上是积极的,提高了代码的健壮性和可维护性。主要关注点是文件操作的安全性和错误处理的完整性。 |
lzwind
approved these changes
Dec 18, 2025
|
Note
详情{
"src/widgets/window.cpp": [
{
"line": " QString key = \"base/enable\";",
"line_number": 389,
"rule": "S106",
"reason": "Var naming | 64f28539d9"
}
]
} |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: lzwind, pppanghu77 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 |
Contributor
Author
|
/merge |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.