summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sd/source/ui/view/ViewShellBase.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/ViewShellBase.cxx b/sd/source/ui/view/ViewShellBase.cxx
index 2df5ad572516..a5cda27ed6c7 100644
--- a/sd/source/ui/view/ViewShellBase.cxx
+++ b/sd/source/ui/view/ViewShellBase.cxx
@@ -270,6 +270,8 @@ ViewShellBase::ViewShellBase (
*/
ViewShellBase::~ViewShellBase()
{
+ sfx2::SfxNotebookBar::CloseMethod(GetFrame()->GetBindings());
+
rtl::Reference<SlideShow> xSlideShow(SlideShow::GetSlideShow(*this));
if (xSlideShow.is() && xSlideShow->dependsOn(this))
SlideShow::Stop(*this);
@@ -770,8 +772,6 @@ bool ViewShellBase::PrepareClose (bool bUI)
if (bResult)
{
- sfx2::SfxNotebookBar::CloseMethod(GetFrame()->GetBindings());
-
mpImpl->mbIsClosing = true;
// Forward call to main sub shell.