From 82447189ccfc662f86ec00f5001527cc997f5020 Mon Sep 17 00:00:00 2001 From: Stephan Bergmann Date: Tue, 23 Jul 2013 11:34:53 +0200 Subject: 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 --- sd/source/ui/dlg/PhotoAlbumDialog.cxx | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) (limited to 'sd/source/ui') 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++ ) { -- cgit