1. problem: Steps to reproduce: 1. Create a file and save with GPG encryption. 2. Close file. 3. Open file. 4. File -> Save As Problem: "Save with password" is preselected, not "Encrypt with GPG key" 2. problem: https://git.libreoffice.org/core/+/ca5c9591ba38ad83415a2d4ced98bfc74d30b032/sfx2/source/dialog/filedlghelper.cxx#1420 mbPwdCheckBoxState becomes also set to true if the file is GPG encrypted. (not with a password 3. problem: https://git.libreoffice.org/core/+/ca5c9591ba38ad83415a2d4ced98bfc74d30b032/sfx2/source/dialog/filedlghelper.cxx#1538): LO also asks for a password if `CHECKBOX_GPGENCRYPTION` && `CHECKBOX_PASSWORD` are checked. But only encrypts using GPG and discards the password. Problems moved here from: bug 158839 comment 1: [META] OpenPGP bugs and enhancements At least broken since LO 24.2. (maybe earlier)
Nice-To-Have: Write a test to check, of a just GPG-encrypted-saved and still opened document also gets encrypted with GPG when saving again (save, not save-as).