diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-07-23 11:34:53 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-07-23 11:37:05 +0200 |
commit | 82447189ccfc662f86ec00f5001527cc997f5020 (patch) | |
tree | 1df8cfe233d4d4127b2db8cc0417f583743b86ea /sd/source/ui/dlg | |
parent | 2b45d55d87ec1414e3a39a759d014d1e256f7975 (diff) |
If this configuration access throws exceptions sth very fundamental is broken
...with the LO installation, so it doesn't make much sense to "handle" them
locally.
Change-Id: I02fade858f9b507976bf612ba942be90bf25d51f
Diffstat (limited to 'sd/source/ui/dlg')
-rw-r--r-- | sd/source/ui/dlg/PhotoAlbumDialog.cxx | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/sd/source/ui/dlg/PhotoAlbumDialog.cxx b/sd/source/ui/dlg/PhotoAlbumDialog.cxx index 0f13c7ffbdee..c321325ae78b 100644 --- a/sd/source/ui/dlg/PhotoAlbumDialog.cxx +++ b/sd/source/ui/dlg/PhotoAlbumDialog.cxx @@ -454,16 +454,7 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, FileHdl) SFXWB_GRAPHIC | SFXWB_MULTISELECTION ); // Read configuration - OUString sUrl("."); - try - { - sUrl = officecfg::Office::Impress::Pictures::Path::get(); - } - catch(const Exception&) - { - OSL_FAIL("Could not find config for Create Photo Album function"); - } - + OUString sUrl(officecfg::Office::Impress::Pictures::Path::get()); INetURLObject aFile( SvtPathOptions().GetPalettePath() ); if (sUrl != "") @@ -478,17 +469,12 @@ IMPL_LINK_NOARG(SdPhotoAlbumDialog, FileHdl) { sUrl = aDlg.GetDisplayDirectory(); // Write out configuration - try { boost::shared_ptr< comphelper::ConfigurationChanges > batch( comphelper::ConfigurationChanges::create()); officecfg::Office::Impress::Pictures::Path::set(sUrl, batch); batch->commit(); } - catch(const Exception&) - { - OSL_FAIL("Could not find config for Create Photo Album function"); - } for ( sal_Int32 i = 0; i < aFilesArr.getLength(); i++ ) { |