summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorSamuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>2019-07-29 10:09:11 +0200
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2019-08-13 10:20:55 +0200
commit16527fdf034a926fce043a4d0259a4a505e19762 (patch)
treedf0afc2fbc2d1780de1f2e7fed13e6e158372c61 /sfx2
parent025f17c4247b1c4458192da177648c304a93b949 (diff)
Expand collapsed sidebar when calling XSidebarProvider::showDecks
This UNO call did not work correctly when the sidebar was completely collapsed. Change-Id: I3de0b89d95aa81287c36911bbd52a9941d9886b3 Reviewed-on: https://gerrit.libreoffice.org/76530 Tested-by: Jenkins Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx
index 54bfe433eec9..5c7e1efe67a5 100644
--- a/sfx2/source/sidebar/SidebarController.cxx
+++ b/sfx2/source/sidebar/SidebarController.cxx
@@ -551,10 +551,6 @@ void SidebarController::OpenThenToggleDeck (
void SidebarController::OpenThenSwitchToDeck (
const OUString& rsDeckId)
{
- SfxSplitWindow* pSplitWindow = GetSplitWindow();
- if ( pSplitWindow && !pSplitWindow->IsFadeIn() )
- // tdf#83546 Collapsed sidebar should expand first
- pSplitWindow->FadeIn();
RequestOpenDeck();
SwitchToDeck(rsDeckId);
@@ -1106,6 +1102,11 @@ void SidebarController::RequestCloseDeck()
void SidebarController::RequestOpenDeck()
{
+ SfxSplitWindow* pSplitWindow = GetSplitWindow();
+ if ( pSplitWindow && !pSplitWindow->IsFadeIn() )
+ // tdf#83546 Collapsed sidebar should expand first
+ pSplitWindow->FadeIn();
+
mbIsDeckRequestedOpen = true;
UpdateDeckOpenState();
}