Commit bdfb2b6
committed
Guard dropEvent against empty URL list
Calling constLast() on an empty QList crashes. Although dragEnterEvent
only accepts drops with hasUrls(), the MIME data could theoretically
change between the drag-enter and drop events, so guard explicitly.
https://claude.ai/code/session_01KvuREfVMg7MnzkpLBg8NVz1 parent ae64096 commit bdfb2b6
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
233 | 233 | | |
234 | 234 | | |
235 | 235 | | |
236 | | - | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
237 | 243 | | |
238 | 244 | | |
239 | 245 | | |
| |||
0 commit comments