aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/keypair_details/KeyPairUIDTab.cpp
diff options
context:
space:
mode:
authorSaturn&Eric <[email protected]>2021-12-05 06:25:17 +0000
committerSaturneric <[email protected]>2021-12-05 07:33:00 +0000
commitc6a0a8db19c92a7c9ca0569e2c24a3503071c574 (patch)
tree1b9972e825962dd4b4edaa1ab0111679b450328b /src/ui/keypair_details/KeyPairUIDTab.cpp
parentUpdate Ci Configurre File (diff)
parentMerge branch 'main' of github.com:saturneric/GpgFrontend (diff)
downloadGpgFrontend-c6a0a8db19c92a7c9ca0569e2c24a3503071c574.tar.gz
GpgFrontend-c6a0a8db19c92a7c9ca0569e2c24a3503071c574.zip
Merge branch 'main' into develop
1. Fix issues noticed by codacy. 2. Fix CI Configure Files. 3. Modified Porject Configuration. 4. Fixed Error in Source Code.
Diffstat (limited to 'src/ui/keypair_details/KeyPairUIDTab.cpp')
-rw-r--r--src/ui/keypair_details/KeyPairUIDTab.cpp15
1 files changed, 5 insertions, 10 deletions
diff --git a/src/ui/keypair_details/KeyPairUIDTab.cpp b/src/ui/keypair_details/KeyPairUIDTab.cpp
index 0ca7eb2c..3d56699a 100644
--- a/src/ui/keypair_details/KeyPairUIDTab.cpp
+++ b/src/ui/keypair_details/KeyPairUIDTab.cpp
@@ -329,22 +329,17 @@ void KeyPairUIDTab::slotDelUID() {
"</b><br/><br/>" + keynames + +"<br/>" +
_("The action can not be undone."),
QMessageBox::No | QMessageBox::Yes);
-
- bool if_all_success = true;
-
+
if (ret == QMessageBox::Yes) {
for (const auto& uid : *selected_uids) {
LOG(INFO) << "KeyPairUIDTab::slotDelUID UID" << uid;
if (!UidOperator::GetInstance().revUID(mKey, uid)) {
- if_all_success = false;
+ QMessageBox::critical(
+ nullptr, _("Operation Failed"),
+ QString(_("An error occurred during the delete %1 operation."))
+ .arg(uid.c_str()));
}
}
-
- if (!if_all_success) {
- QMessageBox::critical(
- nullptr, _("Operation Failed"),
- _("At least an error occurred during the operation."));
- }
emit signalUpdateUIDInfo();
}
}