summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorMichael Meeks <michael.meeks@suse.com>2013-05-17 20:32:16 +0100
committerMichael Meeks <michael.meeks@suse.com>2013-05-20 11:33:39 +0100
commit66a5cc468cef0c6db8b42b7f25367f04208e6f2e (patch)
treea9b84b17ac4f1dbd368a61ef056d23dda25af617 /sw
parent05f0eb57618d090fa45011120a907a3b1157accb (diff)
Only register and use the Sidebar if it is globally enabled.
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/app/swmodule.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/app/swmodule.cxx b/sw/source/ui/app/swmodule.cxx
index 126cea5d7352..fb53d186b249 100644
--- a/sw/source/ui/app/swmodule.cxx
+++ b/sw/source/ui/app/swmodule.cxx
@@ -400,7 +400,7 @@ void SwDLL::RegisterControls()
::avmedia::MediaPlayer::RegisterChildWindow(0, pMod);
SvxSmartTagsControl::RegisterControl(SID_OPEN_SMARTTAGMENU, pMod);
- ::sfx2::sidebar::SidebarChildWindow::RegisterChildWindow(0, pMod);
+ ::sfx2::sidebar::SidebarChildWindow::RegisterChildWindowIfEnabled(0, pMod);
::sfx2::TaskPaneWrapper::RegisterChildWindow(0, pMod);
}