sw/source/ui/config/mailconfigpage.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit fb902968cb6b8b4e01d5a33b93dce4c5a60bb83a Author: Justin Luth <justin_l...@sil.org> Date: Fri Feb 9 08:52:47 2018 +0300 mailconfig UI: prefilled username: only clear when disabled. logic error - the username was being cleared on initial page load, and was toggling on and off every time the radio button was tapped. Change-Id: I8c2334665cd18fe8cdd0ea6739e90b088a105256 Reviewed-on: https://gerrit.libreoffice.org/49467 Tested-by: Jenkins <c...@libreoffice.org> Reviewed-by: Justin Luth <justin_l...@sil.org> diff --git a/sw/source/ui/config/mailconfigpage.cxx b/sw/source/ui/config/mailconfigpage.cxx index 71b9b773ffc2..3e5b043812a4 100644 --- a/sw/source/ui/config/mailconfigpage.cxx +++ b/sw/source/ui/config/mailconfigpage.cxx @@ -517,12 +517,12 @@ IMPL_LINK_NOARG(SwAuthenticationSettingsDialog, RadioButtonHdl_Impl, Button*, vo if ( bSeparate && m_pUserNameED->GetText().isEmpty() ) m_pUserNameED->SetText( rConfigItem.GetMailAddress() ); - else if ( m_pUserNameED->GetText() == rConfigItem.GetMailAddress() ) + else if ( !bSeparate && m_pUserNameED->GetText() == rConfigItem.GetMailAddress() ) m_pUserNameED->SetText(""); if ( bNotSeparate && m_pInUsernameED->GetText().isEmpty() ) m_pInUsernameED->SetText( rConfigItem.GetMailAddress() ); - else if ( m_pInUsernameED->GetText() == rConfigItem.GetMailAddress() ) + else if ( !bNotSeparate && m_pInUsernameED->GetText() == rConfigItem.GetMailAddress() ) m_pInUsernameED->SetText(""); m_pOutgoingServerFT->Enable(bSeparate); _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits