summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorJan-Marek Glogowski <jan-marek.glogowski@extern.cib.de>2019-12-11 10:24:37 +0100
committerJan-Marek Glogowski <glogow@fbihome.de>2019-12-17 11:58:07 +0100
commitb3348ce498b3d54b3e5e6518954ad9d5e917b8f2 (patch)
treec8ddcb79770e88e9d26a2832709add9cb0047180 /cui
parent7efae60f3625a58f8a617c80f2a55a695fbaef36 (diff)
Fix macro security UI usability problems
* Don't hide the option dialogs "Macro security" push button. I don't see any reason, why these settings should be hidden, if macros are disabled or settings locked. At least a user can now check, what is going on (still nothing shows disabled macros for a document in the UI AFAIK). * Don't scale the lock icons of the trusted list boxes. This just uses the same alignments, which the macro security level lock image uses, otherwise the image is scaled to fit the whole space of its layout cell. * Don't disable the trusted list boxes. If the setting is locked, it's sufficient to disable all the buttons, which allow modification (so View can stay enabled). This way you can still scroll the list. Correct button handling is already implemented and works for me. * Catch exceptions of broken certificate data. If your config contains certificates, which can't be correctly decoded, the NSS backend will throw an exception, which kills the dialog, but not the nested loop, resulting in a locked LO. Also show an error dialog with the broken base64-encoded data. Change-Id: I79002e0ce85cf9a9017caf858407f2f635a3a074 Reviewed-on: https://gerrit.libreoffice.org/85056 Tested-by: Jenkins Reviewed-by: Jan-Marek Glogowski <glogow@fbihome.de>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optinet2.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/cui/source/options/optinet2.cxx b/cui/source/options/optinet2.cxx
index b79a1d9bbd3e..5e3c6a878ff4 100644
--- a/cui/source/options/optinet2.cxx
+++ b/cui/source/options/optinet2.cxx
@@ -734,20 +734,6 @@ IMPL_LINK_NOARG(SvxSecurityTabPage, MacroSecPBHdl, weld::Button&, void)
void SvxSecurityTabPage::InitControls()
{
- // Hide all controls which belong to the macro security button in case the macro
- // security settings managed by the macro security dialog opened via the button
- // are all readonly or if the macros are disabled in general.
- // @@@ Better would be to query the dialog whether it is 'useful' or not. Exposing
- // macro security dialog implementations here, which is bad.
- if ( mpSecOptions->IsMacroDisabled()
- || ( mpSecOptions->IsReadOnly( SvtSecurityOptions::EOption::MacroSecLevel )
- && mpSecOptions->IsReadOnly( SvtSecurityOptions::EOption::MacroTrustedAuthors )
- && mpSecOptions->IsReadOnly( SvtSecurityOptions::EOption::SecureUrls ) ) )
- {
- //Hide these
- m_xMacroSecFrame->hide();
- }
-
#ifndef UNX
m_xCertFrame->hide();
#endif
fix off by one errorMarkus Mohrhard 2018-09-10Rename online updater functions and strcmp relpathJan-Marek Glogowski 2018-09-07Fix some std::unique_ptr array allocsJan-Marek Glogowski 2018-03-20updater: Tone down the geekiness in user-facing stringsAdolfo Jayme Barrientos 2018-01-17Blind fixStephan Bergmann 2018-01-16Fix typosAndrea Gelmini 2018-01-16Missing includeStephan Bergmann 2018-01-15convert a<b?a:b to std::min(a,b)Noel Grandin 2017-12-30Updater Icon: Shrink svg fileandreas kainz 2017-11-19Fix typosAndrea Gelmini 2017-10-23chmod 0755 -> 0644 for some source filesStephan Bergmann 2017-09-13onlineupdate: work around GCC7 -Werror=implicit-fallthroughMichael Stahl 2017-08-29update the gtk updater icon with the new updater iconMarkus Mohrhard 2017-08-28update updater iconandreas kainz 2017-08-22updater: store the updater GUI icon on linux in the codeMarkus Mohrhard 2017-08-22updater: get the updater GUI working on LinuxMarkus Mohrhard 2017-08-22updater: fix error in linux part of updater makefilesMarkus Mohrhard 2017-08-21updater: add a way to test the dialog code of the updaterMarkus Mohrhard 2017-08-21updater: always show the updater UIMarkus Mohrhard 2017-08-21updater: set executable type GUI for updater.exeMarkus Mohrhard 2017-08-14updater: reference the correct new static library nameMarkus Mohrhard