diff options
author | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-09 15:27:12 +0100 |
---|---|---|
committer | Caolán McNamara <caolan.mcnamara@collabora.com> | 2023-06-11 22:16:30 +0200 |
commit | d5a973fee90820b529e5fbafbef35917625ffd19 (patch) | |
tree | a628f4fbd0ae1e547abf7e395344864486526b7e /sfx2 | |
parent | 73611b5b81a7d420f9921c1dc24bc4f35c783741 (diff) |
Related: tdf#155507 don't broadcast UI Theme change unless it did change
a problem since:
https://github.com/CollaboraOnline/online/commit/b6d4c88f9011845acae5c8537c0826055c8327a2
Change-Id: Iac1189ba7b892324b5f000f5f6240787b3209892
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152799
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/appl/appserv.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx index 7b233434dc57..2d57c7e562dc 100644 --- a/sfx2/source/appl/appserv.cxx +++ b/sfx2/source/appl/appserv.cxx @@ -583,8 +583,10 @@ void SfxApplication::MiscExec_Impl( SfxRequest& rReq ) SAL_WARN("sfx.appl", "FN_CHANGE_THEME: no theme name"); break; } + const OUString& rSchemeName = pNewThemeArg->GetValue(); svtools::EditableColorConfig aEditableConfig; - aEditableConfig.LoadScheme(pNewThemeArg->GetValue()); + if (aEditableConfig.GetCurrentSchemeName() != rSchemeName) + aEditableConfig.LoadScheme(rSchemeName); break; } |