diff options
author | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-11-06 22:03:58 +0000 |
---|---|---|
committer | nils <nils@34ebc366-c3a9-4b3c-9f84-69acf7962910> | 2011-11-06 22:03:58 +0000 |
commit | eaa4e699ebe9739cb353751286006480413d5594 (patch) | |
tree | 81e4dc2b368db42aa569a6fe51c969de45494328 /keymgmt.cpp | |
parent | show keyring files in importkeyfromfile-dialog (diff) | |
download | gpg4usb-eaa4e699ebe9739cb353751286006480413d5594.tar.gz gpg4usb-eaa4e699ebe9739cb353751286006480413d5594.zip |
fixed a lot of bugs, where app crached, when no tab is opened (liek save as, quote, undo, copy...) or when no key is selected (keydetails)
git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@602 34ebc366-c3a9-4b3c-9f84-69acf7962910
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-x | keymgmt.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp index 9227392..2250996 100755 --- a/keymgmt.cpp +++ b/keymgmt.cpp @@ -222,6 +222,10 @@ void KeyMgmt::deleteKeysWithWarning(QStringList *uidList) void KeyMgmt::showKeyDetails() { + if (mKeyList->getSelected()->isEmpty()) { + return; + } + // TODO: first...? gpgme_key_t key = mCtx->getKeyDetails(mKeyList->getSelected()->first()); |