Version: unspecified (using Devel)
Right now, when one launches the "Export Public Key" dialog, chooses to export it to a file and enters an existing file name, KGpg will overwrite the existing file's contents without any confirmation, in some cases leading to data loss.
Steps to Reproduce:
- Create a file somewhere.
- Launch the Export Public Key dialog.
- Choose the "File" option.
- Enter the name of the file which has been created.
KGpg will write the contents of the selected key into the file without asking if the file should be overwritten.
KGpg asks the user whether he/she really wants to overwrite the contents of the existing file before proceeding.
Git commit c97530d36fc24221b8ce99abd54b79ebfff495fb by Rolf Eike Beer, on behalf of Luis Ángel Fernández Fernández.
Committed on 21/10/2011 at 21:54.
Pushed by dakon into branch 'KDE/4.7'.
ask the user before overwriting files when exporting keys
Now when the user wants to export the public key to a file and that file
already exists the user is asked about overwriting the file.
M +34 -16 keyexport.cpp
M +13 -10 keyexport.h
M +119 -112 keyexport.ui
M +5 -15 keysmanager.cpp