From 54f9d1f4d3ab003f4d658aeb64b482b212ab7041 Mon Sep 17 00:00:00 2001 From: nils Date: Tue, 2 Aug 2011 00:43:21 +0000 Subject: added information to verifylabel and functionalitiy to import missing keys. Dont show a delete dialog, if no key is checked git-svn-id: http://cpunk.de/svn/src/gpg4usb/trunk@506 34ebc366-c3a9-4b3c-9f84-69acf7962910 --- keymgmt.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'keymgmt.cpp') 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); -- cgit