diff options
author | Saturneric <[email protected]> | 2021-07-15 17:42:56 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-07-15 17:42:56 +0000 |
commit | f232098a23c00e6f92570a97777e2f0457c0e48e (patch) | |
tree | 5cb3b4eee477454a6b6decafd876cef1bf9698f6 /src/ui/main_window/MainWindowSlotFunction.cpp | |
parent | Merge branch 'develop' into main (diff) | |
download | GpgFrontend-f232098a23c00e6f92570a97777e2f0457c0e48e.tar.gz GpgFrontend-f232098a23c00e6f92570a97777e2f0457c0e48e.zip |
Add send mail function and its settings.
Diffstat (limited to 'src/ui/main_window/MainWindowSlotFunction.cpp')
-rw-r--r-- | src/ui/main_window/MainWindowSlotFunction.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index 0bddb9b2..4bb3a02b 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -23,6 +23,7 @@ */ #include "MainWindow.h" +#include "ui/SendMailDialog.h" void MainWindow::slotEncrypt() { @@ -83,6 +84,13 @@ void MainWindow::slotEncrypt() { else infoBoard->slotRefresh(reportText, INFO_ERROR_WARN); + if (resultAnalyse->getStatus() >= 0) { + infoBoard->resetOptionActionsMenu(); + infoBoard->addOptionalAction("Send Mail", [this]() { + new SendMailDialog(this); + }); + } + delete resultAnalyse; } else if (edit->slotCurPageFileTreeView() != nullptr) { this->slotFileEncrypt(); |