sw/source/ui/dbui/mmresultdialogs.cxx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)
New commits: commit 08d16c76e483333b43e4f74bb6f9e57605f43f27 Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Mon Jul 27 22:26:13 2020 +0300 Commit: Gülşah Köse <gulsah.k...@collabora.com> CommitDate: Mon Jul 27 22:31:32 2020 +0200 Use enable/disable widgets instead of hide/show. Change-Id: Ied3eb671155b88d47a5a91fcd81351492ccf9bb9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99560 Tested-by: Jenkins Reviewed-by: Gülşah Köse <gulsah.k...@collabora.com> diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index 083b7633969e..ef10e4f321a9 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -346,9 +346,9 @@ SwMMResultEmailDialog::SwMMResultEmailDialog(weld::Window* pParent) m_xOKButton->connect_clicked(LINK(this, SwMMResultEmailDialog, SendDocumentsHdl_Impl)); - m_xPasswordCB->hide(); - m_xPasswordFT->hide(); - m_xPasswordLB->hide(); + m_xPasswordCB->set_sensitive(false); + m_xPasswordFT->set_sensitive(false); + m_xPasswordLB->set_sensitive(false); FillInEmailSettings(); } @@ -860,17 +860,16 @@ IMPL_LINK(SwMMResultEmailDialog, SendTypeHdl_Impl, weld::ComboBox&, rBox, void) if(bIsPDF) { - m_xPasswordCB->show(); - m_xPasswordFT->show(); - m_xPasswordLB->show(); + m_xPasswordCB->set_sensitive(true); + m_xPasswordFT->set_sensitive(true); + m_xPasswordLB->set_sensitive(true); CheckHdl(*m_xPasswordCB); } else { - m_xPasswordCB->hide(); - m_xPasswordFT->hide(); - m_xPasswordLB->hide(); - + m_xPasswordCB->set_sensitive(false); + m_xPasswordFT->set_sensitive(false); + m_xPasswordLB->set_sensitive(false); } } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits