diff options
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 60b61c4dbd62..b8a87338c0d1 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -489,8 +489,17 @@ void SidebarController::OpenThenSwitchToDeck ( // fdo#67627 Clicking a second time on a Deck icon will close the Deck if (IsDeckVisible(rsDeckId)) { - RequestCloseDeck(); - return; + // fdo#88241 Summoning an undocked sidebar a second time should close sidebar + if (!GetSplitWindow()) + { + mpParentWindow->Close(); + return; + } + else + { + RequestCloseDeck(); + return; + } } RequestOpenDeck(); SwitchToDeck(rsDeckId); |