Kaydet (Commit) 7b57ab7a authored tarafından Rachit Gupta's avatar Rachit Gupta Kaydeden (comit) Jan Holesovsky

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
üst b1824cfd
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment