summaryrefslogtreecommitdiff
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2018-01-18 16:51:28 +0300
committerJustin Luth <justin_luth@sil.org>2018-01-29 20:04:31 +0100
commit8ee4911d572764c0e15ded8142d8c9be2ea3e875 (patch)
tree144fe005dc941905dc68a39969f531177d3fc7ed /sw/source/ui/config
parent85ee924f83173d4addd6ed22d8756fe6d66ccaba (diff)
mailconfig UI: SSL CB toggles secure port 587 and unsecure 25
If the default value is in the SMTP port field, switching SSL on and off will toggle between SECURE_PORT and DEFAULT_PORT Change-Id: Ie4bdd55a3d8bbe64ce6b8761ba30971464c1db4e Reviewed-on: https://gerrit.libreoffice.org/48211 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Justin Luth <justin_luth@sil.org>
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/mailconfigpage.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx
index c3928d35eccb..ec2ad5db503a 100644
--- a/sw/source/ui/config/mailconfigpage.cxx
+++ b/sw/source/ui/config/mailconfigpage.cxx
@@ -134,6 +134,7 @@ SwMailConfigPage::SwMailConfigPage( vcl::Window* pParent, const SfxItemSet& rSet
m_pReplyToCB->SetClickHdl(LINK(this, SwMailConfigPage, ReplyToHdl));
m_pServerAuthenticationPB->SetClickHdl(LINK(this, SwMailConfigPage, AuthenticationHdl));
m_pTestPB->SetClickHdl(LINK(this, SwMailConfigPage, TestHdl));
+ m_pSecureCB->SetClickHdl(LINK(this, SwMailConfigPage, SecureHdl));
}
SwMailConfigPage::~SwMailConfigPage()
@@ -227,6 +228,13 @@ IMPL_LINK_NOARG(SwMailConfigPage, TestHdl, Button*, void)
ScopedVclPtrInstance<SwTestAccountSettingsDialog>(this)->Execute();
}
+IMPL_LINK(SwMailConfigPage, SecureHdl, Button*, pBox, void)
+{
+ bool bEnable = static_cast<CheckBox*>(pBox)->IsChecked();
+ m_pConfigItem->SetSecureConnection(bEnable);
+ m_pPortNF->SetValue(m_pConfigItem->GetMailPort());
+}
+
SwTestAccountSettingsDialog::SwTestAccountSettingsDialog(SwMailConfigPage* pParent)
: SfxModalDialog(pParent, "TestMailSettings", "modules/swriter/ui/testmailsettings.ui")
, m_aCompletedImg(BitmapEx(RID_BMP_FORMULA_APPLY))