sw/source/uibase/config/usrpref.cxx | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
New commits: commit f71ab7b5f47a928541aec5083d8b18db5d538cd8 Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Fri Dec 20 13:44:17 2024 +0000 Commit: Miklos Vajna <vmik...@collabora.com> CommitDate: Mon Jan 6 13:04:12 2025 +0100 make SwCursorConfig ConfigItem listen to the config changes. Change-Id: Ia653759378913758f0b2750c9d072b76523fa034 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178923 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Miklos Vajna <vmik...@collabora.com> diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx index 526f090b56da..4da8899d0345 100644 --- a/sw/source/uibase/config/usrpref.cxx +++ b/sw/source/uibase/config/usrpref.cxx @@ -75,7 +75,6 @@ SwMasterUsrPref::SwMasterUsrPref(bool bWeb) : } m_aLayoutConfig.Load(); - m_aCursorConfig.Load(); if(m_pWebColorConfig) m_pWebColorConfig->Load(); } @@ -516,10 +515,12 @@ Sequence<OUString> SwCursorConfig::GetPropertyNames() return aNames; } -SwCursorConfig::SwCursorConfig(SwMasterUsrPref& rPar) : - ConfigItem("Office.Writer/Cursor", ConfigItemMode::ReleaseTree), - m_rParent(rPar) +SwCursorConfig::SwCursorConfig(SwMasterUsrPref& rPar) + : ConfigItem("Office.Writer/Cursor") + , m_rParent(rPar) { + Load(); + EnableNotification(GetPropertyNames()); } SwCursorConfig::~SwCursorConfig() @@ -575,7 +576,10 @@ void SwCursorConfig::Load() } } -void SwCursorConfig::Notify( const css::uno::Sequence< OUString >& ) {} +void SwCursorConfig::Notify(const css::uno::Sequence<OUString>& ) +{ + Load(); +} SwWebColorConfig::SwWebColorConfig(SwMasterUsrPref& rPar) : ConfigItem("Office.WriterWeb/Background", ConfigItemMode::ReleaseTree),