https://bugs.documentfoundation.org/show_bug.cgi?id=170719
--- Comment #5 from Armin Le Grand (collabora) <[email protected]> --- Experimented a bit, and it seems I was close: That change below *seems* to solve the problem, but someone else should check that who knows more about that area. It just does *not* call sfx2::SfxNotebookBar::StateMethod when this is the ViewShell in which the SlideSHow is running... ---- diff --git a/sd/source/ui/docshell/docshell.cxx b/sd/source/ui/docshell/docshell.cxx index 082e9e9de4a6..2ebc4d49d283 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,7 +320,10 @@ void DrawDocShell::GetState(SfxItemSet &rSet) bool bVisible = false; if(bImpress) { - bVisible = sfx2::SfxNotebookBar::StateMethod(mpViewShell->GetFrame()->GetBindings(), + // tdf#170719 only check NotebookBar stuff when this is not the + // runing SlideShow + if(!sd::SlideShow::IsRunning(mpViewShell->GetViewShellBase())) + bVisible = sfx2::SfxNotebookBar::StateMethod(mpViewShell->GetFrame()->GetBindings(), u"modules/simpress/ui/"); } else -- You are receiving this mail because: You are the assignee for the bug.
