Skip to content

Fix folder tree crash during git checkout - #1364

Merged
visualfc merged 1 commit into
masterfrom
fix/mac-checkout-crash
Sep 7, 2026
Merged

Fix folder tree crash during git checkout#1364
visualfc merged 1 commit into
masterfrom
fix/mac-checkout-crash

Conversation

@visualfc

@visualfc visualfc commented Sep 7, 2026

Copy link
Copy Markdown
Owner

修复 macOS 下执行 git checkout 切换分支时文件树偶发崩溃的问题。

变更:

  • 在 layoutAboutToBeChanged 通知前保存持久索引。
  • 对代理索引映射增加有效性和边界检查。
  • 使用 QPersistentModelIndex 保存映射父索引。

验证:

  • macOS Qt5 增量构建通过。

@visualfc
visualfc merged commit 14d6866 into master Sep 7, 2026
12 checks passed
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.

1 participant