Home GnuPG

Fix AttachmentModel::openAttachment

Description

Fix AttachmentModel::openAttachment

  • Fix the logic to check for valid / invalid filenames.
  • Put files in a unique temporary dir to avoid naming conflicts

when files are stored in the same directory multiple times.

  • QTemporaryDir also creates the directory which the old code

did not.

  • Use QUrl::fromLocalFile to construct a correct Windows file

URL.

Tested both with valid and invalid file names. A remaining issue
is that on Windows the temporary dir will be left around.

Details

Provenance
aheineckeAuthored on Oct 12 2023, 10:16 AM
Parents
rMTPe45aaf9d54ae: Fix translation domain
Branches
Unknown
Tags
Unknown
Tasks
T6760: Mimetreeparser: Open still does not work correctly