[Libreoffice-commits] core.git: Branch 'feature/gsoc14-personas' - cui/source
Rachit Gupta
rachitgupta1792 at gmail.com
Tue Jul 1 01:07:47 PDT 2014
cui/source/options/personalization.cxx | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 5cbfed7b2633c21abaaf84b4fda0e2e384845c41
Author: Rachit Gupta <rachitgupta1792 at gmail.com>
Date: Tue Jul 1 13:34:39 2014 +0530
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
diff --git a/cui/source/options/personalization.cxx b/cui/source/options/personalization.cxx
index 0a431f0..dd96fd4 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();
More information about the Libreoffice-commits
mailing list