diff options
author | saturneric <[email protected]> | 2024-12-03 10:37:17 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2024-12-03 10:37:17 +0000 |
commit | 64c7fe9b1bdb6074e1f68e6dd6f030c1387669ef (patch) | |
tree | 5d39d0cc1749ade78c9ab6c83fdaa05ae2a33d38 /src/ui/main_window/MainWindowSlotFunction.cpp | |
parent | fix: solve memory issues discovered on linux (diff) | |
download | GpgFrontend-64c7fe9b1bdb6074e1f68e6dd6f030c1387669ef.tar.gz GpgFrontend-64c7fe9b1bdb6074e1f68e6dd6f030c1387669ef.zip |
fix: eml encrypt error handling
Diffstat (limited to 'src/ui/main_window/MainWindowSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowSlotFunction.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index f214efbd..19760e0f 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -667,12 +667,8 @@ void MainWindow::SlotEncryptEML() { // close waiting dialog hd(); - if (p["ret"] != "0" || !p["err"].isEmpty()) { - LOG_E() << "An error occurred trying to decrypt email, " - << "error message: " << p["err"]; - - return; - } + // check if error occurred + if (handle_module_error(p)) return -1; if (!p["eml_data"].isEmpty()) { edit_->SlotSetText2CurEMailPage(p.value("eml_data", "")); |