vcl/source/app/settings.cxx |    2 ++
 1 file changed, 2 insertions(+)

New commits:
commit e0c424ba729e4659ce1007254adbbceafbeaef5b
Author:     Noel Grandin <noel.gran...@collabora.co.uk>
AuthorDate: Tue Apr 19 11:54:53 2022 +0200
Commit:     Noel Grandin <noel.gran...@collabora.co.uk>
CommitDate: Tue Apr 19 14:03:13 2022 +0200

    dont keep writing to config when persona is set to 'no'
    
    Change-Id: I87233fc2a8b1099a7468b28add1b87e864908f4f
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/133169
    Tested-by: Jenkins
    Reviewed-by: Noel Grandin <noel.gran...@collabora.co.uk>

diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 122b2ae6f576..c7e8b8d1c6fa 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -2286,6 +2286,8 @@ static void setupPersonaHeaderFooter( WhichPersona 
eWhich, OUString& rHeaderFoot
     // read from the configuration
     OUString aPersona( officecfg::Office::Common::Misc::Persona::get() );
     OUString aPersonaSettings( 
officecfg::Office::Common::Misc::PersonaSettings::get() );
+    if (aPersona == "no")
+        return;
 
     // have the settings changed? marks if header /footer prepared before
     //should maybe extended to a flag that marks if header /footer /both are 
loaded

Reply via email to