diff options
author | Saturneric <[email protected]> | 2022-01-02 23:54:56 +0000 |
---|---|---|
committer | Saturneric <[email protected]> | 2022-01-02 23:54:56 +0000 |
commit | efabb4fa3d543a1d4443b75a1f23c564ccffd8e2 (patch) | |
tree | 6531273480a7e0385fe25455c1aa44c5918e8360 /src/ui/UserInterfaceUtils.cpp | |
parent | <refactor>(ui): Enhanced sending email function. (diff) | |
download | GpgFrontend-efabb4fa3d543a1d4443b75a1f23c564ccffd8e2.tar.gz GpgFrontend-efabb4fa3d543a1d4443b75a1f23c564ccffd8e2.zip |
<fixed, refactor>(ui): Enhanced sending email function.
1. make options changeable when init in sending email dialog.
Diffstat (limited to '')
-rw-r--r-- | src/ui/UserInterfaceUtils.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/UserInterfaceUtils.cpp b/src/ui/UserInterfaceUtils.cpp index f7f5cb82..967dcc32 100644 --- a/src/ui/UserInterfaceUtils.cpp +++ b/src/ui/UserInterfaceUtils.cpp @@ -41,7 +41,7 @@ std::unique_ptr<GpgFrontend::UI::CommonUtils> #ifdef SMTP_SUPPORT void send_an_email(QWidget* parent, InfoBoardWidget* info_board, - const QString& text) { + const QString& text, bool attach_signature) { info_board->addOptionalAction(_("Send Encrypted Mail"), [=]() { bool smtp_enabled = false; try { @@ -52,6 +52,8 @@ void send_an_email(QWidget* parent, InfoBoardWidget* info_board, } if (smtp_enabled) { auto dialog = new SendMailDialog(text, parent); + dialog->setContentEncryption(false); + dialog->setAttachSignature(attach_signature); dialog->show(); } else { QMessageBox::warning(nullptr, _("Function Disabled"), |