Bug 501447

Summary: Kleopatra does not keep last shown Certificate selection
Product: [Applications] kleopatra Reporter: Thomas <tschweikle>
Component: generalAssignee: Ingo Klöcker <kloecker>
Status: CLOSED WORKSFORME    
Severity: normal CC: aheinecke, mutz, pim-bugs-null
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Thomas 2025-03-13 12:16:29 UTC
Selecting "My Certificates", then quitting kleopatra and reopening it, will select "All Certificates" again.


STEPS TO REPRODUCE
1. Start kleopatra
2. Select "My Certificates"
3. Quit keleopatra (not only close window)
4. Restart kleopatra

OBSERVED RESULT
Kleopatra opens showing "All certificates"; Certificate trees collapsed.

EXPECTED RESULT
Kleopatra oppens showing the last selection "My certificates"; Certificate trees as collapesd or expanded as before.

SOFTWARE/OS VERSIONS
Windows: 10LTS
Linux/KDE Plasma: 6.11.0
KDE Plasma Version: 6.11.0
KDE Frameworks Version: 6.11.0
Qt Version: 6.7.3

ADDITIONAL INFORMATION
GnuPG: 2.5.5
Kleopatra: 4.0.0.250370, Gpg4win-5.0.0-beta145

Kleopatra from Gpg4win-5.0.0-beta103 keppt the selection as expected. Certificate trees where expanded or collapsed as shown while quitting kleopatra.
Comment 1 Ingo Klöcker 2025-03-13 13:35:55 UTC
This works for me with Gpg4win-5.0.0-beta145, i.e. I started Kleopatra, selected "My own", expanded a few, but not all certificates, quit (yes, I really quit), started Kleopatra again and everything was as I left it and as you expect it.

Note that Kleopatra from Gpg4win-5.0.0-beta145 stores its configuration in a different location (%APPDATA%/gnupg/kleopatra). Earlier versions stored their configuration in %APPDATA%/kleopatra and a few other places. We do not (yet?) migrate the old configuration.

I suspect that what you observed was on the very first start of Kleopatra from Gpg4win-5.0.0-beta145. It should work as you expect for subsequent starts of Kleopatra from Gpg4win-5.0.0-beta145.
Comment 2 Thomas 2025-03-17 09:16:18 UTC
Yes, this was it.