uui/source/secmacrowarnings.cxx |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

New commits:
commit 9e7eddb07f6bed1ddf6054725fb45458c9d1ee6f
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Mon Dec 11 12:47:07 2023 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Thu Dec 14 16:12:04 2023 +0100

    This dialog is no longer called when MacroTrustedAuthors is readonly
    
    Change-Id: I73bc43cf57f6a1ed3613f2cf30e469ce6d841248
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160591
    Tested-by: Jenkins
    Reviewed-by: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
    (cherry picked from commit 4a859b3d2ffa4f427cd24bc4aacdc055d4c7826e)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160753
    Tested-by: Thorsten Behrens <thorsten.behr...@allotropia.de>
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx
index d7a5b257b341..6ccf48ba4945 100644
--- a/uui/source/secmacrowarnings.cxx
+++ b/uui/source/secmacrowarnings.cxx
@@ -159,11 +159,7 @@ void MacroWarning::InitControls()
         mxAlwaysTrustCB->set_sensitive(false);
         mxViewSignsBtn->connect_clicked(LINK(this, MacroWarning, 
ViewSignsBtnHdl));
         mxViewSignsBtn->set_sensitive(false);
-
-        if 
(!SvtSecurityOptions::IsReadOnly(SvtSecurityOptions::EOption::MacroTrustedAuthors))
-            mxAlwaysTrustCB->connect_toggled(LINK(this, MacroWarning, 
AlwaysTrustCheckHdl));
-        else
-            mxAlwaysTrustCB->set_visible(false);
+        mxAlwaysTrustCB->connect_toggled(LINK(this, MacroWarning, 
AlwaysTrustCheckHdl));
 
         mnActSecLevel = SvtSecurityOptions::GetMacroSecurityLevel();
         if ( mnActSecLevel >= 2 )

Reply via email to