summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-06-11 22:42:12 +0530
committerJan Holesovsky <kendy@collabora.com>2014-08-14 19:43:25 +0200
commitc81bdc47ae14eb36faf646fa65630923b8238dc4 (patch)
tree9c86f07294813db967e01e170df24002df2dbb1d /cui
parent86eed1d3c12ea9ca6347e78ca2df6ce7973ca757 (diff)
Changed the Persona application process a bit.
The header and footer files of the selected theme are downloaded and saved in the Theme's own folder and applied. Change-Id: Ie974c9bedc01a20c70cb342196fb60550cb39a0f
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/personalization.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index a5f5b9ae40c2..1aba9b45931a 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -370,12 +370,14 @@ bool SvxPersonalizationTabPage::CopyPersonaToGallery( const OUString &rURL )
OUString gallery = "${$BRAND_BASE_DIR/" LIBO_ETC_FOLDER "/" SAL_CONFIGFILE( "bootstrap") "::UserInstallation}";
rtl::Bootstrap::expandMacros( gallery );
gallery += "/user/gallery/personas/";
- // gallery += aName + "/";
osl::Directory::createPath( gallery );
OUString aHeaderFile( INetURLObject( aHeaderURL ).getName() );
OUString aFooterFile( INetURLObject( aFooterURL ).getName() );
+ aHeaderFile = aName + "/" + aHeaderFile;
+ aFooterFile = aName + "/" + aFooterFile;
+
try {
xFileAccess->copy( aHeaderURL, gallery + aHeaderFile );
xFileAccess->copy( aFooterURL, gallery + aFooterFile );