diff options
author | Henry Castro <hcastro@collabora.com> | 2020-12-28 14:08:41 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2021-01-05 12:24:46 +0100 |
commit | 81ff0857a7c36596036348cdc4edc87ed93f4294 (patch) | |
tree | fea68f2e8cd02b89c3e04c5cc4d0e7efcd97e5f9 /svtools/source | |
parent | d988b0cdeb54d84a0347a036a277c21c12544ab9 (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>
Diffstat (limited to 'svtools/source')
-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()) |