[Libreoffice-commits] core.git: cui/source
George Wood (via logerrit)
logerrit at kemper.freedesktop.org
Fri Aug 30 20:53:53 UTC 2019
cui/source/dialogs/hltpbase.cxx | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
New commits:
commit 934e34ef756a3ece569d2f47a0979b4e6ed67a27
Author: George Wood <gwoodcode at gmail.com>
AuthorDate: Mon Jul 30 14:54:47 2018 +0100
Commit: Miklos Vajna <vmiklos at collabora.com>
CommitDate: Fri Aug 30 22:52:55 2019 +0200
Hide macro selector button in kit mode.
Change-Id: If068d23a5aeb9be6d8e1736543c002bf2e68dacb
Reviewed-on: https://gerrit.libreoffice.org/78321
Reviewed-by: Miklos Vajna <vmiklos at collabora.com>
Tested-by: Jenkins
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index 463cd12d6fec..dced754a2971 100644
--- a/cui/source/dialogs/hltpbase.cxx
+++ b/cui/source/dialogs/hltpbase.cxx
@@ -20,6 +20,7 @@
#include <memory>
#include <sal/config.h>
+#include <comphelper/lok.hxx>
#include <osl/file.hxx>
#include <sfx2/app.hxx>
#include <sfx2/event.hxx>
@@ -272,10 +273,17 @@ void SvxHyperlinkTabPageBase::FillStandardDlgFields ( const SvxHyperlinkItem* pH
mxEdText->set_text( pHyperlinkItem->GetIntName() );
// Script-button
- if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE )
- mxBtScript->set_sensitive(false);
+ if (!comphelper::LibreOfficeKit::isActive())
+ {
+ if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE )
+ mxBtScript->set_sensitive(false);
+ else
+ mxBtScript->set_sensitive(true);
+ }
else
- mxBtScript->set_sensitive(true);
+ {
+ mxBtScript->hide();
+ }
}
// Any action to do after apply-button is pressed
More information about the Libreoffice-commits
mailing list