Kaydet (Commit) 304e2002 authored tarafından Trent MacAlpine's avatar Trent MacAlpine Kaydeden (comit) Jan Holesovsky

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/13979Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarJan Holesovsky <kendy@collabora.com>
Tested-by: 's avatarJan Holesovsky <kendy@collabora.com>
üst 83e8d016
......@@ -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();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment