From f43a5ec28d36422c105da3d640bf94ad9c8a2ba6 Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Thu, 27 Oct 2022 18:11:08 -0400 Subject: lok: fix convert-to batch mode, quiet interaction If it is a batch mode to convert *.csv to *.ods, use the quiet interaction to avoid unwanted filter dialogs. Signed-off-by: Henry Castro Change-Id: I4ef82c1079888ae099084072c146b5db4cc0f2a0 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/141950 Tested-by: Jenkins Reviewed-by: Ashod Nakashian --- framework/source/loadenv/loadenv.cxx | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'framework') diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx index b3f351a22cae..89feaa25d0ab 100644 --- a/framework/source/loadenv/loadenv.cxx +++ b/framework/source/loadenv/loadenv.cxx @@ -295,6 +295,14 @@ void LoadEnv::startLoading(const OUString& sURL, const uno::Sequence pQuietInteraction = new QuietInteraction(); + uno::Reference xInteractionHandler(pQuietInteraction); + m_lMediaDescriptor[utl::MediaDescriptor::PROP_INTERACTIONHANDLER] <<= xInteractionHandler; + } + initializeUIDefaults(m_xContext, m_lMediaDescriptor, bUIMode, &m_pQuietInteraction); start(); -- cgit