diff options
author | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-12-11 12:47:07 +0100 |
---|---|---|
committer | Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de> | 2023-12-14 08:10:06 +0100 |
commit | 4a859b3d2ffa4f427cd24bc4aacdc055d4c7826e (patch) | |
tree | 515ad8e55a42c3c46ff868ad33befbae38c58eb2 | |
parent | 69814fc26fe21a258cf32fca021945f5bc69f59c (diff) |
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.mehrbrodt@allotropia.de>
-rw-r--r-- | uui/source/secmacrowarnings.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
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 ) |