summaryrefslogtreecommitdiff
path: root/sd/source/ui
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui')
-rw-r--r--sd/source/ui/dlg/PhotoAlbumDialog.cxx16
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++ )
{