Kaydet (Commit) 9711a8a3 authored tarafından Pranav Kant's avatar Pranav Kant

lokdialog: Disable filepicker for LOK

We don't want people to browser their jails in the filepicker dialog.

Change-Id: I2fdd3d948cc1f193098492d1a310424ac2d49317
üst 668deca9
......@@ -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" )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment