summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrius Štikonas <andrius@stikonas.eu>2016-07-15 14:39:58 (GMT)
committerAndrius Štikonas <andrius@stikonas.eu>2016-07-15 14:39:58 (GMT)
commit07f5a1b63b985d801342732d89fffb5948c9af4a (patch)
treebb9065e7770f53b5688ec98bc4a2ef724571d80a
parentb5778e9b0e93080e0cfa54dcaeb5ed7119bce0c2 (diff)
Show warning before deleting photo.
-rw-r--r--keysmanager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/keysmanager.cpp b/keysmanager.cpp
index 1256e4f..997b118 100644
--- a/keysmanager.cpp
+++ b/keysmanager.cpp
@@ -956,6 +956,9 @@ void KeysManager::slotDeletePhoto()
QString mess = i18n("<qt>Are you sure you want to delete Photo id <b>%1</b><br/>from key <b>%2 &lt;%3&gt;</b>?</qt>",
und->getId(), parent->getName(), parent->getEmail());
+ if (KMessageBox::warningContinueCancel(0, mess) != KMessageBox::Continue)
+ return;
+
KGpgDelUid *deluid = new KGpgDelUid(this, und);
connect(deluid, &KGpgDelUid::done, this, &KeysManager::slotDelPhotoFinished);