summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-07-01 13:34:39 +0530
committerJan Holesovsky <kendy@collabora.com>2014-08-14 19:43:30 +0200
commit7b57ab7a98912a86d6131a79c81a1a1d857ed1c1 (patch)
treebe9e2f37516e250573d80bb4733da9d87a141f0a
parentb1824cfd16dcc1f8fa5563b737d95fb4767a5640 (diff)
Fixed Bug: Persona info is deleted if No Persona is selected.
If the user selects 'Plain look..' and clicks OK, the previous persona information is removed from the registry so that if the user selects either of the other option and clicks OK, the previous theme is not applied. Change-Id: I5f6a707e5f2724d2a3c39965d155cf47c898d392
-rw-r--r--cui/source/options/personalization.cxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 7e03250062ae..6074eafa3655 100644
--- a/cui/source/options/personalization.cxx
+++ b/cui/source/options/personalization.cxx
@@ -285,6 +285,8 @@ bool SvxPersonalizationTabPage::FillItemSet( SfxItemSet * )
// write
boost::shared_ptr< comphelper::ConfigurationChanges > batch( comphelper::ConfigurationChanges::create() );
+ if( aPersona == "no" )
+ m_aPersonaSettings = "";
officecfg::Office::Common::Misc::Persona::set( aPersona, batch );
officecfg::Office::Common::Misc::PersonaSettings::set( m_aPersonaSettings, batch );
batch->commit();