summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-20 14:21:48 +0000
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-12-20 20:29:22 +0100
commitd355682ba1799eb42069f4095e321db95fc2f540 (patch)
tree06f2f80b001f9cd7d0b0cd82d6aa6160e78970d5
parent9b228790dfb771bbc24bd4c21bf26d217651bb8f (diff)
make SwFmtAidsAutoComplConfig ConfigItem listen to the config changes.
Change-Id: I92f57f9ea8a0ea109fbec9e18665adeb3c6d2837 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178931 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
-rw-r--r--sw/source/uibase/config/usrpref.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sw/source/uibase/config/usrpref.cxx b/sw/source/uibase/config/usrpref.cxx
index 88c456ed2264..2904cd62abed 100644
--- a/sw/source/uibase/config/usrpref.cxx
+++ b/sw/source/uibase/config/usrpref.cxx
@@ -81,8 +81,6 @@ SwMasterUsrPref::SwMasterUsrPref(bool bWeb) :
m_nDefTabInMm100 = 1250;
return;
}
-
- m_aFmtAidsAutoComplConfig.Load();
}
SwMasterUsrPref::~SwMasterUsrPref()
@@ -647,9 +645,11 @@ Sequence<OUString> SwFmtAidsAutoComplConfig::GetPropertyNames()
}
SwFmtAidsAutoComplConfig::SwFmtAidsAutoComplConfig(SwMasterUsrPref& rPar)
- : ConfigItem(u"Office.Writer/FmtAidsAutocomplete"_ustr, ConfigItemMode::ReleaseTree)
+ : ConfigItem(u"Office.Writer/FmtAidsAutocomplete"_ustr)
, m_rParent(rPar)
{
+ Load();
+ EnableNotification(GetPropertyNames());
}
SwFmtAidsAutoComplConfig::~SwFmtAidsAutoComplConfig() {}
@@ -700,7 +700,10 @@ void SwFmtAidsAutoComplConfig::Load()
}
}
-void SwFmtAidsAutoComplConfig::Notify(const css::uno::Sequence<OUString>&) {}
+void SwFmtAidsAutoComplConfig::Notify(const css::uno::Sequence<OUString>&)
+{
+ Load();
+}
SwWebColorConfig::SwWebColorConfig(SwMasterUsrPref& rPar)
: ConfigItem(u"Office.WriterWeb/Background"_ustr)