diff options
author | Saturneric <[email protected]> | 2021-07-16 10:22:45 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2021-07-16 10:22:45 +0000 |
commit | 6169797b283a68a5d9df6c2f420d8dc8eea06781 (patch) | |
tree | 8a90600e52122cc9d45e231fc562ae1e4d380e04 /src/ui/main_window/MainWindowSlotFunction.cpp | |
parent | Improve the function of sending mail; update the version number; (diff) | |
download | GpgFrontend-6169797b283a68a5d9df6c2f420d8dc8eea06781.tar.gz GpgFrontend-6169797b283a68a5d9df6c2f420d8dc8eea06781.zip |
Improve the function of sending mail;
Diffstat (limited to '')
-rw-r--r-- | src/ui/main_window/MainWindowSlotFunction.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/ui/main_window/MainWindowSlotFunction.cpp b/src/ui/main_window/MainWindowSlotFunction.cpp index cc8adb6f..8a4b786e 100644 --- a/src/ui/main_window/MainWindowSlotFunction.cpp +++ b/src/ui/main_window/MainWindowSlotFunction.cpp @@ -358,6 +358,19 @@ void MainWindow::slotEncryptSign() { else infoBoard->slotRefresh(reportText, INFO_ERROR_WARN); + if (status >= 0) { + infoBoard->resetOptionActionsMenu(); + infoBoard->addOptionalAction("Send Mail", [this]() { + if(settings.value("sendMail/enable", false).toBool()) + new SendMailDialog(edit->curTextPage()->toPlainText(), this); + else { + QMessageBox::warning(nullptr, + tr("Function Disabled"), + tr("Please go to the settings interface to enable and configure this function.")); + } + }); + } + delete resultAnalyseEncr; delete resultAnalyseSign; } else if (edit->slotCurPageFileTreeView() != nullptr) { |