diff options
Diffstat (limited to 'src/ui/main_window/MainWindowFileSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowFileSlotFunction.cpp | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/src/ui/main_window/MainWindowFileSlotFunction.cpp b/src/ui/main_window/MainWindowFileSlotFunction.cpp index fc9401c8..f26a9587 100644 --- a/src/ui/main_window/MainWindowFileSlotFunction.cpp +++ b/src/ui/main_window/MainWindowFileSlotFunction.cpp @@ -227,16 +227,18 @@ void MainWindow::SlotFileEncrypt() { if (ret == QMessageBox::Cancel) return; - process_operation( - this, _("Symmetrically Encrypting"), [&](DataObjectPtr) -> int { - try { - error = GpgFrontend::GpgFileOpera::EncryptFileSymmetric( - path.toStdString(), out_path.toStdString(), result, _channel); - } catch (const std::runtime_error& e) { - if_error = true; - } - return 0; - }); + process_operation(this, _("Symmetrically Encrypting"), + [&](DataObjectPtr) -> int { + try { + // error = + // GpgFrontend::GpgFileOpera::EncryptFileSymmetric( + // path.toStdString(), out_path.toStdString(), + // result, _channel); + } catch (const std::runtime_error& e) { + if_error = true; + } + return 0; + }); } else { auto p_keys = GpgKeyGetter::GetInstance().GetKeys(key_ids); |