[PATCH] disable JRE warnings during help compilation on first start
Michael Meeks
michael.meeks at suse.com
Thu Feb 16 04:44:56 PST 2012
---
.../source/deployment/registry/help/dp_help.cxx | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/desktop/source/deployment/registry/help/dp_help.cxx b/desktop/source/deployment/registry/help/dp_help.cxx
index d121833..adc2875 100644
--- a/desktop/source/deployment/registry/help/dp_help.cxx
+++ b/desktop/source/deployment/registry/help/dp_help.cxx
@@ -38,6 +38,7 @@
#include "comphelper/servicedecl.hxx"
#include "svl/inettype.hxx"
#include "unotools/pathoptions.hxx"
+#include "uno/current_context.hxx"
#if !defined(ANDROID) && !defined(IOS)
#include <l10ntools/compilehelp.hxx>
@@ -420,6 +421,10 @@ void BackendImpl::implProcessHelp(
Reference< script::XInvocation > xInvocation;
if( xContext.is() )
{
+ // Ignore the missing JRE scenario on upgrade/first-start without
+ // horrible end-user warnings that are ignorable,and cause grief.
+ Reference< XCurrentContext > xNoContext;
+ com::sun::star::uno::ContextLayer dummyLayer( xNoContext );
try
{
xInvocation = Reference< script::XInvocation >(
--
1.7.3.4
--
michael.meeks at suse.com <><, Pseudo Engineer, itinerant idiot
More information about the LibreOffice
mailing list