aboutsummaryrefslogtreecommitdiffstats
path: root/keymgmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-xkeymgmt.cpp4
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());