summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@collabora.com>2014-06-26 12:06:52 +0100
committerMichael Meeks <michael.meeks@collabora.com>2014-06-28 14:37:21 +0100
commit115fd951e92a725ee6fca41e96d6b791ac66bd34 (patch)
tree25e99c2353453245326031898b36e71466bcca65 /vcl
parenta2648efa6748b782bf739c55cf93fb69d547ead1 (diff)
Avoid loading persona images in headless mode.
Change-Id: Ie3bb69d93b97deab0830c2b45ba3428a8931a949
Diffstat (limited to 'vcl')
-rw-r--r--vcl/source/app/settings.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/app/settings.cxx b/vcl/source/app/settings.cxx
index 4174d5af59ae..1e6050ce1ae0 100644
--- a/vcl/source/app/settings.cxx
+++ b/vcl/source/app/settings.cxx
@@ -2108,6 +2108,10 @@ static void setupPersonaHeaderFooter( WhichPersona eWhich, OUString& rHeaderFoot
if ( !xContext.is() )
return;
+ // don't burn time loading images we don't need.
+ if ( Application::IsHeadlessModeEnabled() )
+ return;
+
// read from the configuration
OUString aPersona( officecfg::Office::Common::Misc::Persona::get( xContext ) );
OUString aPersonaSettings( officecfg::Office::Common::Misc::PersonaSettings::get( xContext ) );