From f0ae7571b7f0d8b03f6c365d6c24ee69d973c781 Mon Sep 17 00:00:00 2001 From: Jim Raykowski Date: Thu, 23 Dec 2021 20:46:59 -0900 Subject: tdf#146003 tdf#106613 Draw: fix slide rename not updated in Navigator Change-Id: Iee2d34e3192e3f7875ab10f3e79e9dc1a2fb20b8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127397 Tested-by: Jenkins Reviewed-by: Jim Raykowski (cherry picked from commit 9bfc42015acd6ae3475ab7927ccc006507cc38a2) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127486 Reviewed-by: Xisco Fauli --- sd/source/ui/view/drviewsb.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'sd/source/ui/view/drviewsb.cxx') diff --git a/sd/source/ui/view/drviewsb.cxx b/sd/source/ui/view/drviewsb.cxx index 5bc741c91269..6f6bba8555d5 100644 --- a/sd/source/ui/view/drviewsb.cxx +++ b/sd/source/ui/view/drviewsb.cxx @@ -97,9 +97,11 @@ bool DrawViewShell::RenameSlide( sal_uInt16 nPageId, const OUString & rName ) GetDoc()->SetChanged(); // inform navigator about change - SfxBoolItem aItem( SID_NAVIGATOR_INIT, true ); - GetViewFrame()->GetDispatcher()->ExecuteList(SID_NAVIGATOR_INIT, - SfxCallMode::ASYNCHRON | SfxCallMode::RECORD, { &aItem }); + if (GetViewFrame()) + { + SfxBindings& rBindings = GetViewFrame()->GetBindings(); + rBindings.Invalidate(SID_NAVIGATOR_STATE, true); + } // Tell the slide sorter about the name change (necessary for // accessibility.) -- cgit