sd/source/ui/docshell/docshell.cxx |    8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

New commits:
commit e323498a08ce3c1e5b593263d0d3e6663ad58740
Author:     Armin Le Grand <[email protected]>
AuthorDate: Mon Feb 16 05:20:24 2026 +0100
Commit:     Xisco Fauli <[email protected]>
CommitDate: Fri Feb 20 08:41:27 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]>
    (cherry picked from commit 15e954646486767238ee57136ab214e31aad31da)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/199453
    Reviewed-by: Xisco Fauli <[email protected]>

diff --git a/sd/source/ui/docshell/docshell.cxx 
b/sd/source/ui/docshell/docshell.cxx
index d1c4d1c0b091..d379f32a04fd 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
                     {

Reply via email to