diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-03-15 11:19:51 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2019-03-16 01:01:33 +0100 |
commit | e3e6f43bc8c01ca6c3ad87180db2b3e623d8eed4 (patch) | |
tree | 6a3f041c5073bc05e21ff3d1e4f0b194ba655df3 /xmlsecurity | |
parent | 8a8c029244e8a27efd92017968313c2116a9776a (diff) |
clarify that set_visible(true/false) is just show/hide
ditch duplicate method
Change-Id: Iea35d6437f48809a06e093241bddf301f00c502b
Reviewed-on: https://gerrit.libreoffice.org/69302
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'xmlsecurity')
-rw-r--r-- | xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx | 16 | ||||
-rw-r--r-- | xmlsecurity/source/dialogs/macrosecurity.cxx | 4 |
2 files changed, 10 insertions, 10 deletions
diff --git a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx index 05c37d478b05..d0bd4ff9a616 100644 --- a/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx +++ b/xmlsecurity/source/dialogs/digitalsignaturesdialog.cxx @@ -632,23 +632,23 @@ void DigitalSignaturesDialog::ImplFillSignaturesBox() bool bAllCertsValid = (nValidCerts == nInfos); bool bShowValidState = nInfos && (bAllSigsValid && bAllCertsValid && bAllNewSignatures); - m_xSigsValidImg->show( bShowValidState); - m_xSigsValidFI->show( bShowValidState ); + m_xSigsValidImg->set_visible( bShowValidState); + m_xSigsValidFI->set_visible( bShowValidState ); bool bShowInvalidState = nInfos && !bAllSigsValid; - m_xSigsInvalidImg->show( bShowInvalidState ); - m_xSigsInvalidFI->show( bShowInvalidState ); + m_xSigsInvalidImg->set_visible( bShowInvalidState ); + m_xSigsInvalidFI->set_visible( bShowInvalidState ); bool bShowNotValidatedState = nInfos && bAllSigsValid && !bAllCertsValid; - m_xSigsNotvalidatedImg->show(bShowNotValidatedState); - m_xSigsNotvalidatedFI->show(bShowNotValidatedState); + m_xSigsNotvalidatedImg->set_visible(bShowNotValidatedState); + m_xSigsNotvalidatedFI->set_visible(bShowNotValidatedState); //bAllNewSignatures is always true if we are not in document mode bool bShowOldSignature = nInfos && bAllSigsValid && bAllCertsValid && !bAllNewSignatures; - m_xSigsOldSignatureImg->show(bShowOldSignature); - m_xSigsOldSignatureFI->show(bShowOldSignature); + m_xSigsOldSignatureImg->set_visible(bShowOldSignature); + m_xSigsOldSignatureFI->set_visible(bShowOldSignature); SignatureHighlightHdl(*m_xSignaturesLB); } diff --git a/xmlsecurity/source/dialogs/macrosecurity.cxx b/xmlsecurity/source/dialogs/macrosecurity.cxx index febd07d1b58d..3e61b21dfa2a 100644 --- a/xmlsecurity/source/dialogs/macrosecurity.cxx +++ b/xmlsecurity/source/dialogs/macrosecurity.cxx @@ -358,14 +358,14 @@ MacroSecurityTrustedSourcesTP::MacroSecurityTrustedSourcesTP(weld::Container* pP m_aTrustedAuthors = m_pDlg->m_aSecOptions.GetTrustedAuthors(); mbAuthorsReadonly = m_pDlg->m_aSecOptions.IsReadOnly( SvtSecurityOptions::EOption::MacroTrustedAuthors ); - m_xTrustCertROFI->show(mbAuthorsReadonly); + m_xTrustCertROFI->set_visible(mbAuthorsReadonly); m_xTrustCertLB->set_sensitive(!mbAuthorsReadonly); FillCertLB(); css::uno::Sequence< OUString > aSecureURLs = m_pDlg->m_aSecOptions.GetSecureURLs(); mbURLsReadonly = m_pDlg->m_aSecOptions.IsReadOnly( SvtSecurityOptions::EOption::SecureUrls ); - m_xTrustFileROFI->show(mbURLsReadonly); + m_xTrustFileROFI->set_visible(mbURLsReadonly); m_xTrustFileLocLB->set_sensitive(!mbURLsReadonly); m_xAddLocPB->set_sensitive(!mbURLsReadonly); |