[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - cui/source
George Wood (via logerrit)
logerrit at kemper.freedesktop.org
Sun Sep 22 08:08:29 UTC 2019
cui/source/dialogs/hltpbase.cxx | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
New commits:
commit ebaa3261fdb727ef99ab075ce5e40c32c37de427
Author: George Wood <gwoodcode at gmail.com>
AuthorDate: Mon Jul 30 14:54:47 2018 +0100
Commit: Andras Timar <andras.timar at collabora.com>
CommitDate: Sun Sep 22 10:07:55 2019 +0200
Hide macro selector button in kit mode.
Change-Id: If068d23a5aeb9be6d8e1736543c002bf2e68dacb
Signed-off-by: Michael Meeks <michael.meeks at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/79278
Reviewed-by: Andras Timar <andras.timar at collabora.com>
Tested-by: Andras Timar <andras.timar at collabora.com>
diff --git a/cui/source/dialogs/hltpbase.cxx b/cui/source/dialogs/hltpbase.cxx
index 2992611d7ffe..dd346b071f1f 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/event.hxx>
#include <sfx2/frame.hxx>
@@ -288,10 +289,17 @@ void SvxHyperlinkTabPageBase::FillStandardDlgFields ( const SvxHyperlinkItem* pH
mpEdText->SetText ( pHyperlinkItem->GetIntName() );
// Script-button
- if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE )
- mpBtScript->Disable();
+ if (!comphelper::LibreOfficeKit::isActive())
+ {
+ if ( pHyperlinkItem->GetMacroEvents() == HyperDialogEvent::NONE )
+ mpBtScript->Disable();
+ else
+ mpBtScript->Enable();
+ }
else
- mpBtScript->Enable();
+ {
+ mpBtScript->Hide();
+ }
}
// Any action to do after apply-button is pressed
More information about the Libreoffice-commits
mailing list