fileformatdialog: Fix memory leak of the FileDialog

1 job for master in 6 minutes and 55 seconds (queued for 1 second)
Status Job ID Name Coverage
  Build
passed #16523
linux kf5-qt5 qt5.12

00:06:55

48.0%