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

New commits:
commit 4a859b3d2ffa4f427cd24bc4aacdc055d4c7826e
Author:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
AuthorDate: Mon Dec 11 12:47:07 2023 +0100
Commit:     Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de>
CommitDate: Thu Dec 14 08:10:06 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>

diff --git a/uui/source/secmacrowarnings.cxx b/uui/source/secmacrowarnings.cxx
index ae53aa3eeb88..0a295fba30a4 100644
--- a/uui/source/secmacrowarnings.cxx
+++ b/uui/source/secmacrowarnings.cxx
@@ -135,11 +135,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