diff options
author | Saturn&Eric <[email protected]> | 2021-12-05 06:25:17 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-12-05 07:33:00 +0000 |
commit | c6a0a8db19c92a7c9ca0569e2c24a3503071c574 (patch) | |
tree | 1b9972e825962dd4b4edaa1ab0111679b450328b /src/ui/keypair_details/KeyPairUIDTab.cpp | |
parent | Update Ci Configurre File (diff) | |
parent | Merge branch 'main' of github.com:saturneric/GpgFrontend (diff) | |
download | GpgFrontend-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.cpp | 15 |
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(); } } |