sd/source/ui/docshell/docshell.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 15e954646486767238ee57136ab214e31aad31da Author: Armin Le Grand <[email protected]> AuthorDate: Mon Feb 16 05:20:24 2026 +0100 Commit: Samuel Mehrbrodt <[email protected]> CommitDate: Mon Feb 16 08:17:15 2026 +0100 tdf#170719: don't show notebookbar on running slideshow Change-Id: I934ee64b36075bc4c1d71a25027a2f46a5acb4e9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199438 Tested-by: Jenkins Reviewed-by: Samuel Mehrbrodt <[email protected]> diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx index 082e9e9de4a6..505119d123b6 100644 --- a/sd/source/ui/docshell/docshell.cxx +++ b/sd/source/ui/docshell/docshell.cxx @@ -50,6 +50,7 @@ #include <sdmod.hxx> #include <View.hxx> #include <drawdoc.hxx> +#include <slideshow.hxx> #include <ViewShell.hxx> #include <unomodel.hxx> @@ -319,8 +320,11 @@ void DrawDocShell::GetState(SfxItemSet &rSet) bool bVisible = false; if(bImpress) { - bVisible = sfx2::SfxNotebookBar::StateMethod(mpViewShell->GetFrame()->GetBindings(), - u"modules/simpress/ui/"); + // tdf#170719 only bother with NotebookBar + // stuff, if this is not the runing SlideShow + if(!sd::SlideShow::IsRunning(mpViewShell->GetViewShellBase())) + bVisible = sfx2::SfxNotebookBar::StateMethod(mpViewShell->GetFrame()->GetBindings(), + u"modules/simpress/ui/"); } else {
