summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fpicker/source/office/iodlg.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/fpicker/source/office/iodlg.cxx b/fpicker/source/office/iodlg.cxx
index 333c384734f1..d40f93214411 100644
--- a/fpicker/source/office/iodlg.cxx
+++ b/fpicker/source/office/iodlg.cxx
@@ -69,6 +69,7 @@
#include <com/sun/star/beans/XPropertySet.hpp>
#include <comphelper/interaction.hxx>
+#include <comphelper/lok.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/string.hxx>
@@ -1797,6 +1798,9 @@ void SvtFileDialog::EnableControl( Control* _pControl, bool _bEnable )
short SvtFileDialog::PrepareExecute()
{
+ if (comphelper::LibreOfficeKit::isActive())
+ return 0;
+
OUString aEnvValue;
if ( getEnvironmentValue( "WorkDirMustContainRemovableMedia", aEnvValue ) && aEnvValue == "1" )
{