Commit 34bee3d
zhangjiarui
fix(editor): check parent MIME types to support subtype files in isMimeTypeSupport
- Retain QMimeType object to enable parent type lookup
- Add parentMimeTypes() fallback to match subtypes against whitelist
修复(editor): 在 isMimeTypeSupport 中检查父 MIME 类型以支持子类型文件打开
Log: 通过父 MIME 类型继承关系扩展白名单匹配范围,修复子类型文件无法打开的问题
Bug: https://pms.uniontech.com/bug-view-362023.html1 parent 86ad04a commit 34bee3d
1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
539 | 539 | | |
540 | 540 | | |
541 | 541 | | |
| 542 | + | |
542 | 543 | | |
543 | 544 | | |
544 | 545 | | |
| |||
564 | 565 | | |
565 | 566 | | |
566 | 567 | | |
| 568 | + | |
567 | 569 | | |
568 | 570 | | |
569 | 571 | | |
| |||
0 commit comments