sw/source/ui/dbui/mmresultdialogs.cxx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-)
New commits: commit 407ad48dc464495031e45e4b3019fb1f068d301c Author: Gülşah Köse <gulsah.k...@collabora.com> AuthorDate: Mon Jul 27 22:26:13 2020 +0300 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Tue Jul 28 09:33:36 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> (cherry picked from commit 08d16c76e483333b43e4f74bb6f9e57605f43f27) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99535 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Andras Timar <andras.ti...@collabora.com> diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx index adc586132f0c..52712a6ea106 100644 --- a/sw/source/ui/dbui/mmresultdialogs.cxx +++ b/sw/source/ui/dbui/mmresultdialogs.cxx @@ -312,9 +312,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(); } @@ -835,17 +835,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