aboutsummaryrefslogtreecommitdiffstats
path: root/keymgmt.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keymgmt.cpp')
-rwxr-xr-xkeymgmt.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/keymgmt.cpp b/keymgmt.cpp
index c3ed7bf..ff7d4fc 100755
--- a/keymgmt.cpp
+++ b/keymgmt.cpp
@@ -180,6 +180,9 @@ void KeyMgmt::deleteKeysWithWarning(QStringList *uidList)
* more than one selected... compare to seahorse "delete-dialog"
*/
+ if (uidList->isEmpty()) {
+ return;
+ }
QString keynames;
foreach (QString uid, *uidList) {
keynames.append(mCtx->getKeyDetails(uid)->uids->name);