Fix crash on undo speed change

1 job for master in 14 minutes and 19 seconds (queued for 2 seconds)
Status Job ID Name Coverage
  Build
passed #30127
linux kf5-qt5 qt5.12

00:14:19

20.0%