Commit 37f339c
committed
fix: add exact match flag to prevent duplicate app entries
Added Qt::MatchExactly flag to the match() function call to ensure
proper duplicate detection
This prevents multiple instances of the same application from being
added to the model
The previous implementation could incorrectly match partial desktop IDs,
leading to duplicates
fix: 添加精确匹配标志以防止重复应用条目
在 match() 函数调用中添加了 Qt::MatchExactly 标志以确保正确的重复检测
这可以防止同一应用程序的多个实例被添加到模型中
之前的实现可能会错误地匹配部分桌面 ID,导致重复条目
PMS: BUG-3390051 parent 7e29b38 commit 37f339c
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments