diff options
author | Henry Castro <hcastro@collabora.com> | 2020-12-28 14:08:41 -0400 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2021-04-09 17:31:34 +0100 |
commit | 82692cdd099e3bace22f1dc2e38ea99c1b94d1ae (patch) | |
tree | b1963288a18af5860e881d6a7aef90c6837fe0a5 | |
parent | 402e2ab0bbb6ee1b154bc5087044639201832b00 (diff) |
lok: disable java interaction handler
Unfortunately, when the client side shows
the "Macro Selector" dialog, it tries to show
a java interaction message box to locate the
files of the JVM, even if the code explicitly
option to not enable "DontEnableJava"
Change-Id: I2ef4373f58c3ba23a5b86c5dc984caf6c10821ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108421
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
-rw-r--r-- | svtools/source/java/javacontext.cxx | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/svtools/source/java/javacontext.cxx b/svtools/source/java/javacontext.cxx index f961453f6e7e..c804e5f0b99e 100644 --- a/svtools/source/java/javacontext.cxx +++ b/svtools/source/java/javacontext.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <comphelper/lok.hxx> #include <com/sun/star/uno/Any.hxx> #include <com/sun/star/uno/Type.hxx> #include <svtools/javacontext.hxx> @@ -63,6 +64,7 @@ Any SAL_CALL JavaContext::getValueByName( const OUString& Name) if ( Name == JAVA_INTERACTION_HANDLER_NAME ) { + if ( !comphelper::LibreOfficeKit::isActive() ) { osl::MutexGuard aGuard(osl::Mutex::getGlobalMutex()); if (!m_xHandler.is()) |