Here is how to reproduce:
- Open an existing project.
- Open an image or video file.
- Drag and drop from the source tab in the player to the timeline.
- Apply a brightness filter.
- Undo twice. (the drag-and-dropped image or video disappears from the timeline here as expected)
- Redo twice.
The brightness filter gets deleted.
Shotcut 25.01.25
Maybe related to this bug with the same root cause: