From 7a851c5b2da723ca618061c12a14f11479748dfd Mon Sep 17 00:00:00 2001 From: Juergen Funk Date: Wed, 8 Feb 2023 12:15:44 +0100 Subject: tdf#95936: Tooltip not updated in Toolbars after change Shortcut The update of all toobars after change the shortcut was missing, this patch update the toolbars now Change-Id: Ibc896dc48c9143307b028a3c271476482111c2c5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146678 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt --- cui/source/customize/acccfg.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'cui') diff --git a/cui/source/customize/acccfg.cxx b/cui/source/customize/acccfg.cxx index 1a37964fb8c8..70ec1764fc5e 100644 --- a/cui/source/customize/acccfg.cxx +++ b/cui/source/customize/acccfg.cxx @@ -63,6 +63,8 @@ #include #include +#include + // namespaces using namespace css; @@ -1480,6 +1482,13 @@ bool SfxAcceleratorConfigPage::FillItemSet(SfxItemSet*) try { m_xAct->store(); + css::uno::Reference xFrameProps(m_xFrame, + css::uno::UNO_QUERY_THROW); + css::uno::Reference xLayoutManager; + xFrameProps->getPropertyValue("LayoutManager") >>= xLayoutManager; + css::uno::Reference xLayoutProps(xLayoutManager, + css::uno::UNO_QUERY_THROW); + xLayoutProps->setPropertyValue("RefreshContextToolbarToolTip", css::uno::Any(true)); } catch (const uno::RuntimeException&) { -- cgit