fix crash when generating a key fails before user entered password
author Rolf Eike Beer
()
committer Rolf Eike Beer
()
commit 98d7865250cc8ce3016101d54facdbe01c12983d
tree e779451bdc885c95addfb3e139915a6861eceba5
parent b416fabb00fb53e5f4c0774247b640dd3f6a014d
fix crash when generating a key fails before user entered password

If the GnuPG process started to generate a new key failed before the user
entered the password (e.g. because of a broken configuration file) we will use
an already deleted object.

The reason for this was opening a dialog and waiting for its result in a slot,
so the underlying object could have been deleted by the return to the event
loop. Now this is completely handled by signals and slots.

BUG:283357
FIXED-IN:4.7.3
transactions/kgpggeneratekey.cpp
transactions/kgpggeneratekey.h
transactions/kgpgtransaction.cpp
transactions/kgpgtransaction.h