diff options
author | Pranav Kant <pranavk@collabora.co.uk> | 2018-01-25 15:52:52 +0530 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-03-23 00:01:11 +0100 |
commit | 6e1fae5aa004e28d5822018b37e00d2ae17802d6 (patch) | |
tree | 7fdbe8b76172fa60bd6795e58b484560aa504db3 /fpicker | |
parent | 41edbd19a8e6710802618b32479fc363f6862a85 (diff) |
lokdialog: Disable filepicker for LOK
We don't want people to browser their jails in the filepicker dialog.
Change-Id: I2fdd3d948cc1f193098492d1a310424ac2d49317
(cherry picked from commit 9711a8a35796d0d4ab4b69204bd4484686bf0707)
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 ff486ddb3d0a..fe1e3ba9dcc1 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> @@ -1798,6 +1799,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" ) { |