Home GnuPG

Fix crash when output directory for decryption doesn't exist

Description

Fix crash when output directory for decryption doesn't exist

The code previously just asserted that the directory exists.
Instead, bring over the equivalent code from DecryptVerifyFilesDialog by putting it into a helper function.
This also shows appropriate errors when the path is empty, not a directory, etc.
To be able to "cancel" going to the next page, WizardPage::onNext was changed to return a bool indicating whether the wizard should actually continue.

(cherry picked from commit e8dd18338ac70b1c8f224e2958e0e7b2fb545b3b)

  • GnuPG-Bug-ID: T7439
  • Co-authored-by: Tobias Fella <tobias.fella@gnupg.com>