Bug 454084

Summary: Kvault fails closing after encrypting a folder in it
Product: [Applications] kgpg Reporter: Emanuele Spirito <emaster987>
Component: generalAssignee: Rolf Eike Beer <kde>
Status: REPORTED ---    
Severity: normal CC: emaster987
Priority: NOR    
Version First Reported In: 21.12.2   
Target Milestone: ---   
Platform: Fedora RPMs   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:
Attachments: Behaviour of kvault

Description Emanuele Spirito 2022-05-20 11:45:53 UTC
Created attachment 149022 [details]
Behaviour of kvault

SUMMARY
I created a kvault using kgpg and inside it I have a subfolder. When I open the vault, zip the subfolder and then encrypt it with kgpg, after encryption I cannot close kvault (without forcing it) because it says that kgpg is blocking the closing of the kvault. If I close manually kgpg and then try to close the kvault, then it works. 

STEPS TO REPRODUCE
1. open a kvault (with kgpg) that contains subfolders in it (once opened);
2. compress one of the above mentioned subfolder;
3. encrypt the compressed file with kgpg with a symmetric key;
4. after encryption, close all your windows (so you are sure that Dolphin is not concerned in blocking the closing of the kvault);
5. block the kvault (in the system tray there is the button "Block kvault");

OBSERVED RESULT
It can't close the kvault because "kgpg is using the kvault", even after having finished the encryption.

EXPECTED RESULT
The kvault closes because I have no jobs open that deal with the kvault.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 35
KDE Plasma Version: 5.24.3
KDE Frameworks Version: 5.91.0
Qt Version: 5.15.2
Kernel Version: 5.16.18-200.fc35.x86_64 (64-bit)
Graphics Platform: X11
Processors: 8 × Intel® Core™ i7-1065G7 CPU @ 1.30GHz
Memory: 7.5 GiB of RAM
Graphics Processor: Mesa Intel® Iris® Plus Graphics

ADDITIONAL INFORMATION
I attached a video to better explain the behaviour.
Comment 1 Emanuele Spirito 2022-09-15 17:13:17 UTC
I add that if I use the autostart feature of kgpg, this issue does not occur any more.