diff options
author | Rachit Gupta <rachitgupta1792@gmail.com> | 2014-07-01 13:34:39 +0530 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2014-08-14 19:43:30 +0200 |
commit | 7b57ab7a98912a86d6131a79c81a1a1d857ed1c1 (patch) | |
tree | be9e2f37516e250573d80bb4733da9d87a141f0a | |
parent | b1824cfd16dcc1f8fa5563b737d95fb4767a5640 (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.cxx | 2 |
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(); |