diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-07-16 14:19:25 +0200 |
---|---|---|
committer | Thorsten Behrens <Thorsten.Behrens@CIB.de> | 2019-07-19 15:53:17 +0200 |
commit | 520dd8a0d5b02bfaf20c728d25e11282e2844aab (patch) | |
tree | 8ccee6da950135954c91e2d1e63eba2e9b8a7a11 | |
parent | bdbe36bcbe9468526db24b8d538885f7714405c4 (diff) |
tdf#126427 Fix deck highlighting after activating via UNO API
Reviewed-on: https://gerrit.libreoffice.org/75723
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
(cherry picked from commit 5a6671e8d8dc65f2bbb0880f19fd8c8c8e426b6d)
Change-Id: I4ff7dfa156905abcba0df8e6bfbddc9e7d37cbbb
Reviewed-on: https://gerrit.libreoffice.org/75751
Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
Tested-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r-- | sfx2/source/sidebar/SidebarController.cxx | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sfx2/source/sidebar/SidebarController.cxx b/sfx2/source/sidebar/SidebarController.cxx index 14b40e58a6f8..75c2055e41c3 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -538,8 +538,6 @@ void SidebarController::OpenThenToggleDeck ( } RequestOpenDeck(); SwitchToDeck(rsDeckId); - mpTabBar->Invalidate(); - mpTabBar->HighlightDeck(rsDeckId); } void SidebarController::OpenThenSwitchToDeck ( @@ -551,8 +549,7 @@ void SidebarController::OpenThenSwitchToDeck ( pSplitWindow->FadeIn(); RequestOpenDeck(); SwitchToDeck(rsDeckId); - mpTabBar->Invalidate(); - mpTabBar->HighlightDeck(rsDeckId); + } void SidebarController::SwitchToDefaultDeck() @@ -692,6 +689,7 @@ void SidebarController::SwitchToDeck ( msCurrentDeckId = rDeckDescriptor.msId; } + mpTabBar->Invalidate(); mpTabBar->HighlightDeck(msCurrentDeckId); // Determine the panels to display in the deck. |