aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/settings/SettingsSendMail.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ui/settings/SettingsSendMail.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ui/settings/SettingsSendMail.cpp b/src/ui/settings/SettingsSendMail.cpp
index f8278c0b..821bf978 100644
--- a/src/ui/settings/SettingsSendMail.cpp
+++ b/src/ui/settings/SettingsSendMail.cpp
@@ -49,11 +49,13 @@ SendMailTab::SendMailTab(QWidget* parent)
ui->defaultSenderEmailEdit->setDisabled(state != Qt::Checked);
ui->checkConnectionButton->setDisabled(state != Qt::Checked);
});
-
+
+#ifdef SMTP_SUPPORT
connect(ui->checkConnectionButton, &QPushButton::clicked, this,
&SendMailTab::slotCheckConnection);
connect(ui->senTestMailButton, &QPushButton::clicked, this,
&SendMailTab::slotSendTestMail);
+#endif
connect(ui->identityCheckBox, &QCheckBox::stateChanged, this, [=](int state) {
ui->usernameEdit->setDisabled(state != Qt::Checked);
@@ -258,6 +260,7 @@ void SendMailTab::slotCheckConnection() {
}
#endif
+#ifdef SMTP_SUPPORT
void SendMailTab::slotSendTestMail() {
if (ui->defaultSenderEmailEdit->text().isEmpty()) {
QMessageBox::critical(this, _("Fail"), _("Given a default sender first"));
@@ -322,5 +325,6 @@ void SendMailTab::slotSendTestMail() {
this, _("Success"),
_("Succeed in sending a test email to the SMTP Server"));
}
+#endif
} // namespace GpgFrontend::UI