diff options
Diffstat (limited to 'fpicker')
-rw-r--r-- | fpicker/source/win32/filepicker/VistaFilePicker.cxx | 7 |
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(); |