summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorThomas Arnhold <thomas@arnhold.org>2014-08-24 02:51:43 +0200
committerThomas Arnhold <thomas@arnhold.org>2014-08-24 05:27:25 +0200
commit04e96b6d6eb55b9ff2a6ec9c4ce52260e33df121 (patch)
treed9239bce5be6ac2f35b19d2aa3b413899bfccc8a /sfx2
parentd3ebe3e3dcdb89b7713641241f7d431352ba8c5f (diff)
fdo#67627 Clicking on icons of the sidebar should both open and close Decks
Change-Id: I921a8a0b749df62c50f0ae8cb2de85f6cb459784
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index b4ae71a40f67..2a01514f0ea2 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -525,6 +525,13 @@ void SidebarController::UpdateConfigurations (void)
void SidebarController::OpenThenSwitchToDeck (
const ::rtl::OUString& rsDeckId)
{
+ // fdo#67627 Clicking a second time on a Deck icon will close the Deck
+ if (mbIsDeckOpen && mbIsDeckOpen.get() && msCurrentDeckId == rsDeckId)
+ {
+ RequestCloseDeck();
+ return;
+ }
+
RequestOpenDeck();
SwitchToDeck(rsDeckId);
mpTabBar->Invalidate();