summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRachit Gupta <rachitgupta1792@gmail.com>2014-07-01 13:34:39 +0530
committerRachit Gupta <rachitgupta1792@gmail.com>2014-08-04 20:27:55 +0530
commitde1422dd9fabf04d9edf5bcc28aa8a58ddee56c8 (patch)
treed585ecf35941c3ceed0ff330e4f3a8509f65b66f
parent43d91a59e9be02a02a13600fb0084e8938988edb (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();