[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.4' - sw/source
GülÅah Köse (via logerrit)
logerrit at kemper.freedesktop.org
Sun Aug 2 06:58:56 UTC 2020
sw/source/ui/dbui/mmresultdialogs.cxx | 19 +++++++++----------
1 file changed, 9 insertions(+), 10 deletions(-)
New commits:
commit 9bdef35a045bbfc064c9dc2c1df7acd91daac9e3
Author: Gülşah Köse <gulsah.kose at collabora.com>
AuthorDate: Mon Jul 27 22:26:13 2020 +0300
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Aug 2 08:58:22 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.kose at collabora.com>
(cherry picked from commit 08d16c76e483333b43e4f74bb6f9e57605f43f27)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99534
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Andras Timar <andras.timar at collabora.com>
diff --git a/sw/source/ui/dbui/mmresultdialogs.cxx b/sw/source/ui/dbui/mmresultdialogs.cxx
index bbc88ebb30bc..23b3a640f6bb 100644
--- a/sw/source/ui/dbui/mmresultdialogs.cxx
+++ b/sw/source/ui/dbui/mmresultdialogs.cxx
@@ -345,9 +345,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();
}
@@ -854,17 +854,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);
}
}
More information about the Libreoffice-commits
mailing list