aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/main_window/MainWindowSlotFunction.cpp
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-07-16 10:22:45 +0000
committerSaturneric <[email protected]>2021-07-16 10:22:45 +0000
commit6169797b283a68a5d9df6c2f420d8dc8eea06781 (patch)
tree8a90600e52122cc9d45e231fc562ae1e4d380e04 /src/ui/main_window/MainWindowSlotFunction.cpp
parentImprove the function of sending mail; update the version number; (diff)
downloadGpgFrontend-6169797b283a68a5d9df6c2f420d8dc8eea06781.tar.gz
GpgFrontend-6169797b283a68a5d9df6c2f420d8dc8eea06781.zip
Improve the function of sending mail;
Diffstat (limited to '')
-rw-r--r--src/ui/main_window/MainWindowSlotFunction.cpp13
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) {