sd/source/ui/view/drviews1.cxx | 3 +++ sfx2/source/control/shell.cxx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-)
New commits: commit e321d85089fc1dd73cd1f1443a53226a25695194 Author: Justin Luth <jl...@mail.com> AuthorDate: Tue Jun 20 13:37:19 2023 -0400 Commit: Justin Luth <jl...@mail.com> CommitDate: Wed Jun 21 01:01:10 2023 +0200 tdf#122270 sd: refresh notebookbar after switch to/from master view Although the state of the uno items was changing, the notebookbar was not refreshing to display the new state. Change-Id: Ifda5e6dcfa1d569ba75d0c94cdf0bc94c63977d5 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/153360 Tested-by: Jenkins Reviewed-by: Justin Luth <jl...@mail.com> diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index 2be9dad20226..e41e87b08d55 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -506,6 +506,9 @@ void DrawViewShell::ChangeEditMode(EditMode eEMode, bool bIsLayerModeActive) Invalidate( SID_HANDOUT_MASTER_MODE ); InvalidateWindows(); + if (sfx2::SfxNotebookBar::IsActive()) + UIFeatureChanged(); + SetContextName(GetSidebarContextName()); } diff --git a/sfx2/source/control/shell.cxx b/sfx2/source/control/shell.cxx index 84828b0eff25..aeba636a491f 100644 --- a/sfx2/source/control/shell.cxx +++ b/sfx2/source/control/shell.cxx @@ -671,7 +671,7 @@ void SfxShell::UIFeatureChanged() if ( pFrame && pFrame->IsVisible() ) { // Also force an update, if dispatcher is already updated otherwise - // something my get stuck in the bunkered tools. Asynchronous call to + // something may get stuck in the bunkered tools. Asynchronous call to // prevent recursion. if ( !pImpl->pUpdater ) pImpl->pUpdater.reset( new svtools::AsynchronLink( Link<void*,void>( this, DispatcherUpdate_Impl ) ) );