summaryrefslogtreecommitdiff
path: root/fpicker
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2013-07-24 09:31:41 +0200
committerStephan Bergmann <sbergman@redhat.com>2013-07-24 09:31:41 +0200
commit570fe620e9d573cfc9fc260e6518563c6a6c1a3c (patch)
tree414ea7b7f09999aa1ca8edb7d8180d08afd3db0e /fpicker
parent8bae88b146529d469742b33ead50b3a01457e313 (diff)
Keep passing XComponentContext into officecfg:: wrapper fns, where available
Change-Id: I10448edd04c6c7e7f03c539bf85aba4e00c7e311
Diffstat (limited to 'fpicker')
-rw-r--r--fpicker/source/win32/filepicker/VistaFilePicker.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/fpicker/source/win32/filepicker/VistaFilePicker.cxx b/fpicker/source/win32/filepicker/VistaFilePicker.cxx
index b7f7d8332dda..20eff44549e3 100644
--- a/fpicker/source/win32/filepicker/VistaFilePicker.cxx
+++ b/fpicker/source/win32/filepicker/VistaFilePicker.cxx
@@ -218,12 +218,13 @@ void SAL_CALL VistaFilePicker::setDisplayDirectory(const OUString& sDirectory)
throw (css::lang::IllegalArgumentException,
css::uno::RuntimeException )
{
- bool bChanged = officecfg::Office::Common::Path::Info::WorkPathChanged::get();
-
+ bool bChanged = officecfg::Office::Common::Path::Info::WorkPathChanged::get(
+ comphelper::getComponentContext(m_xSMGR));
if (bChanged )
{
boost::shared_ptr< comphelper::ConfigurationChanges > batch(
- comphelper::ConfigurationChanges::create());
+ comphelper::ConfigurationChanges::create(
+ comphelper::getComponentContext(m_xSMGR)));
officecfg::Office::Common::Path::Info::WorkPathChanged::set(
false, batch);
batch->commit();