Fix possible startup crash (calling checkItemDeletion on close)

1 job for master in 17 minutes and 19 seconds
Status Job ID Name Coverage
  Build
passed #30441
linux kf5-qt5 qt5.12

00:17:19

20.0%