fix(editor): deduplicate blank tab indexes to fix incorrect new docum…#474
Merged
deepin-bot[bot] merged 1 commit intoJun 9, 2026
Merged
Conversation
…ent naming - Add std::unique + erase after sorting in getBlankFileIndex() to remove duplicate index numbers - Prevent newly created documents from being stuck with the same "Untitled N" name when tabs with duplicate titles are dragged between windows 修复(editor): 对空白标签索引去重以修复新文档命名错误 - 在 getBlankFileIndex() 的排序后增加 std::unique + erase 去除重复的索引编号 - 修复跨窗口拖入同名"未命名文档"标签后,新建文档名称始终为同一编号的问题 Log: 修复跨窗口拖拽标签导致新文档命名计数器异常的 bug Bug: https://pms.uniontech.com/bug-view-251843.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这段代码是对 语法逻辑
代码质量
代码性能
代码安全
改进建议
总体而言,这是一个合理的改进,解决了潜在的标签页索引计算问题,代码质量良好,没有明显的安全问题。 |
|
Note
详情{
"src/widgets/window.cpp": [
{
"line": " QString key = \"base/enable\";",
"line_number": 390,
"rule": "S106",
"reason": "Var naming | 64f28539d9"
}
]
} |
lzwind
approved these changes
Jun 9, 2026
|
[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
|
/forcemerge |
Contributor
|
This pr force merged! (status: unstable) |
fa2f750
into
linuxdeepin:release/eagle
20 of 22 checks passed
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.
…ent naming
修复(editor): 对空白标签索引去重以修复新文档命名错误
Log: 修复跨窗口拖拽标签导致新文档命名计数器异常的 bug
Bug: https://pms.uniontech.com/bug-view-251843.html