summaryrefslogtreecommitdiff
path: root/sw/source/ui/config
diff options
context:
space:
mode:
authorJustin Luth <justin_luth@sil.org>2018-01-18 18:49:07 +0300
committerCaolán McNamara <caolanm@redhat.com>2018-01-28 14:35:48 +0100
commit972cb3ea9949325d74b9d7d919765e22df0101d7 (patch)
treeb8f62ea76ce77560b59b4c0efe4e5b0787af724c /sw/source/ui/config
parent69acbf1994a2fd8606b119e7716996fb103b75c8 (diff)
mailconfig UI: default POP port 995 and toggle with IMAP ports
SSL is now default, so change POP3's default to port 995. Also, suggest appropriate secure/insecure ports for IMAP and POP as the user switches between them. Change-Id: Ib930504956a222d0d6eb3cad969907751602c106 Reviewed-on: https://gerrit.libreoffice.org/48212 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/config')
-rw-r--r--sw/source/ui/config/mailconfigpage.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx
index df0984ea5f72..c3928d35eccb 100644
--- a/sw/source/ui/config/mailconfigpage.cxx
+++ b/sw/source/ui/config/mailconfigpage.cxx
@@ -107,6 +107,7 @@ class SwAuthenticationSettingsDialog : public SfxModalDialog
DECL_LINK(OKHdl_Impl, Button*, void);
DECL_LINK( CheckBoxHdl_Impl, Button*, void);
DECL_LINK(RadioButtonHdl_Impl, Button*, void);
+ DECL_LINK(InServerHdl_Impl, Button*, void);
public:
SwAuthenticationSettingsDialog(SwMailConfigPage* pParent, SwMailMergeConfigItem& rItem);
@@ -423,6 +424,9 @@ SwAuthenticationSettingsDialog::SwAuthenticationSettingsDialog(
m_pSeparateAuthenticationRB->SetClickHdl( aRBLink );
m_pSMTPAfterPOPRB->SetClickHdl( aRBLink );
m_pOKPB->SetClickHdl( LINK( this, SwAuthenticationSettingsDialog, OKHdl_Impl));
+ Link<Button*,void> aInServerLink = LINK( this, SwAuthenticationSettingsDialog, InServerHdl_Impl );
+ m_pPOP3RB->SetClickHdl( aInServerLink );
+ m_pIMAPRB->SetClickHdl( aInServerLink );
m_pAuthenticationCB->Check( rConfigItem.IsAuthentication() );
if(rConfigItem.IsSMTPAfterPOP())
@@ -535,4 +539,11 @@ IMPL_LINK_NOARG(SwAuthenticationSettingsDialog, RadioButtonHdl_Impl, Button*, vo
m_pInPasswordED->Enable(bNotSeparate);
}
+IMPL_LINK_NOARG( SwAuthenticationSettingsDialog, InServerHdl_Impl, Button*, void)
+{
+ bool bPOP = m_pPOP3RB->IsChecked();
+ rConfigItem.SetInServerPOP(bPOP);
+ m_pPortNF->SetValue(rConfigItem.GetInServerPort());
+}
+
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */