Kaydet (Commit) cc6ec923 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Related fdo#46808: Adapt Windows-only code to previous changes

Change-Id: I115fa92ecf0cbcd6159d0de900e5174fe3c96d18
üst 69c1bacd
......@@ -38,6 +38,7 @@
#include <cppuhelper/interfacecontainer.h>
#include <comphelper/configurationhelper.hxx>
#include <comphelper/processfactory.hxx>
#include <osl/diagnose.h>
#include <osl/mutex.hxx>
#include <osl/file.hxx>
......@@ -221,13 +222,13 @@ void SAL_CALL VistaFilePicker::setDisplayDirectory(const ::rtl::OUString& sDirec
const ::rtl::OUString aKey( RTL_CONSTASCII_USTRINGPARAM("WorkPathChanged"));
css::uno::Any aValue = ::comphelper::ConfigurationHelper::readDirectKey(
m_xSMGR, aPackage, aRelPath, aKey, ::comphelper::ConfigurationHelper::E_READONLY);
comphelper::getComponentContext(m_xSMGR), aPackage, aRelPath, aKey, ::comphelper::ConfigurationHelper::E_READONLY);
bool bChanged(false);
if (( aValue >>= bChanged ) && bChanged )
{
::comphelper::ConfigurationHelper::writeDirectKey(
m_xSMGR, aPackage, aRelPath, aKey, css::uno::makeAny(false), ::comphelper::ConfigurationHelper::E_STANDARD);
comphelper::getComponentContext(m_xSMGR), aPackage, aRelPath, aKey, css::uno::makeAny(false), ::comphelper::ConfigurationHelper::E_STANDARD);
}
RequestRef rRequest(new Request());
......
......@@ -24,7 +24,7 @@
#include <osl/mutex.hxx>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/ui/dialogs/FolderPicker.hpp>
#include <com/sun/star/ui/dialogs/XFolderPicker2.hpp>
#include <com/sun/star/util/XCancellable.hpp>
#include <memory>
......
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