From de1422dd9fabf04d9edf5bcc28aa8a58ddee56c8 Mon Sep 17 00:00:00 2001 From: Rachit Gupta Date: Tue, 1 Jul 2014 13:34:39 +0530 Subject: 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 --- cui/source/options/personalization.cxx | 2 ++ 1 file changed, 2 insertions(+) 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(); -- cgit v1.2.3