summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-20 13:44:17 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-20 20:28:54 +0100
commitf376ad74457fed10f0655f1028ad3bb6897dff4d (patch)
treefe206fe3bfc24adcc688686640a5c80fda768480 /sw
parent46d0e19de898cb8712b5e8582966e58ba6e13ff1 (diff)
make SwCursorConfig ConfigItem listen to the config changes.
Change-Id: Ia653759378913758f0b2750c9d072b76523fa034 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178924 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r--sw/source/uibase/config/usrpref.cxx14
1 files changed, 9 insertions, 5 deletions
diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx
index 212b7fa02832..a32b82dfc4af 100644
--- a/sw/source/uibase/config/usrpref.cxx
+++ b/sw/source/uibase/config/usrpref.cxx
@@ -83,7 +83,6 @@ SwMasterUsrPref::SwMasterUsrPref(bool bWeb) :
}
m_aLayoutConfig.Load();
- m_aCursorConfig.Load();
if(m_pWebColorConfig)
m_pWebColorConfig->Load();
m_aFmtAidsAutoComplConfig.Load();
@@ -567,10 +566,12 @@ Sequence<OUString> SwCursorConfig::GetPropertyNames()
return aNames;
}
-SwCursorConfig::SwCursorConfig(SwMasterUsrPref& rPar) :
- ConfigItem(u"Office.Writer/Cursor"_ustr, ConfigItemMode::ReleaseTree),
- m_rParent(rPar)
+SwCursorConfig::SwCursorConfig(SwMasterUsrPref& rPar)
+ : ConfigItem(u"Office.Writer/Cursor"_ustr)
+ , m_rParent(rPar)
{
+ Load();
+ EnableNotification(GetPropertyNames());
}
SwCursorConfig::~SwCursorConfig()
@@ -626,7 +627,10 @@ void SwCursorConfig::Load()
}
}
-void SwCursorConfig::Notify( const css::uno::Sequence< OUString >& ) {}
+void SwCursorConfig::Notify(const css::uno::Sequence<OUString>& )
+{
+ Load();
+}
Sequence<OUString> SwFmtAidsAutoComplConfig::GetPropertyNames()
{