diff options
author | Gülşah Köse <gulsah.kose@collabora.com> | 2020-07-27 22:26:13 +0300 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-07-28 09:33:36 +0200 |
commit | 407ad48dc464495031e45e4b3019fb1f068d301c (patch) | |
tree | a1383bd881291a4e1385724ad5052ba432ba457a | |
parent | e1c1f1332942fc4f15122cf5e894a64da8e1be0e (diff) |
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.kose@collabora.com>
(cherry picked from commit 08d16c76e483333b43e4f74bb6f9e57605f43f27)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99535
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | sw/source/ui/dbui/mmresultdialogs.cxx | 19 |
1 files changed, 9 insertions, 10 deletions
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); } } |