sd/source/ui/docshell/docshell.cxx | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-)
New commits: commit 11f7e7efe7fa0a503ff31356f78210c9037d65ab Author: Armin Le Grand <[email protected]> AuthorDate: Mon Feb 16 05:20:24 2026 +0100 Commit: Thorsten Behrens <[email protected]> CommitDate: Mon Feb 16 05:44:47 2026 +0100 tdf#170719: don't show notebookbar on running slideshow Change-Id: I934ee64b36075bc4c1d71a25027a2f46a5acb4e9 diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx index cadc59826f47..be7e43ced20f 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 {
