diff options
author | Trent MacAlpine <tmacalp@gmail.com> | 2015-01-18 13:47:20 -0500 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2015-01-19 09:02:36 +0000 |
commit | 304e2002a053e9eb54e36462165eca831da8aeb2 (patch) | |
tree | 5816dbb24f9d6c4de2cf809139564aa6108b2e50 /sfx2 | |
parent | 83e8d0166d4dba92aafead49c427d5ffddd38b72 (diff) |
fdo#87217 Inconsistent floating sidebar close behavior
Remove code that caused an undocked sidebar to reenable a docked
sidebar when you attempt to close it using the window manager. It
should simply be closed instead.
Change-Id: Ib058d167b6c89f42df3ce4c80e4d97435b31c31d
Reviewed-on: https://gerrit.libreoffice.org/13979
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/sidebar/SidebarDockingWindow.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/sfx2/source/sidebar/SidebarDockingWindow.cxx b/sfx2/source/sidebar/SidebarDockingWindow.cxx index 1a39746f810d..24206b160e85 100644 --- a/sfx2/source/sidebar/SidebarDockingWindow.cxx +++ b/sfx2/source/sidebar/SidebarDockingWindow.cxx @@ -88,19 +88,10 @@ void SidebarDockingWindow::GetFocus() +// fdo#87217 bool SidebarDockingWindow::Close (void) { - if (mpSidebarController.is()) - { - // Do not close the floating window. - // Dock it and close just the deck instead. - SetFloatingMode(false); - mpSidebarController->RequestCloseDeck(); - mpSidebarController->NotifyResize(); - return false; - } - else - return SfxDockingWindow::Close(); + return SfxDockingWindow::Close(); } |