diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2018-01-25 15:52:52 +0530 |
---|---|---|
committer | Pranav Kant <pranavk@collabora.co.uk> | 2018-01-25 15:54:29 +0530 |
commit | 9711a8a35796d0d4ab4b69204bd4484686bf0707 (patch) | |
tree | b836caae8fd225cb974891d4a479ef8e920314e8 /fpicker | |
parent | lokdialog: Fix incorrect dialog sizes sent to client (diff) | |
download | core-9711a8a35796d0d4ab4b69204bd4484686bf0707.tar.gz core-9711a8a35796d0d4ab4b69204bd4484686bf0707.zip |
lokdialog: Disable filepicker for LOK
We don't want people to browser their jails in the filepicker dialog.
Change-Id: I2fdd3d948cc1f193098492d1a310424ac2d49317
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/office/iodlg.cxx | 4 |
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" ) { |