diff options
author | Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de> | 2019-07-16 14:19:25 +0200 |
---|---|---|
committer | Adolfo Jayme Barrientos <fitojb@ubuntu.com> | 2019-07-17 14:25:56 +0200 |
commit | 0b68e65d7c33aaba4cd5fd1e587567e36a972d1c (patch) | |
tree | 7c0cfb3f770db27eb9e2e0683630549dacb76085 | |
parent | b7d1226ac09b31f605668225bc8af43c698d59c4 (diff) |
tdf#126427 Fix deck highlighting after activating via UNO API
Change-Id: I4ff7dfa156905abcba0df8e6bfbddc9e7d37cbbb
Reviewed-on: https://gerrit.libreoffice.org/75723
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt@cib.de>
(cherry picked from commit 5a6671e8d8dc65f2bbb0880f19fd8c8c8e426b6d)
Reviewed-on: https://gerrit.libreoffice.org/75748
Reviewed-by: Adolfo Jayme Barrientos <fitojb@ubuntu.com>
-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 34c22ca63546..066ebe52751f 100644 --- a/sfx2/source/sidebar/SidebarController.cxx +++ b/sfx2/source/sidebar/SidebarController.cxx @@ -560,8 +560,6 @@ void SidebarController::OpenThenToggleDeck ( if (mnSavedSidebarWidth < nRequestedWidth) SetChildWindowWidth(nRequestedWidth); - mpTabBar->Invalidate(); - mpTabBar->HighlightDeck(rsDeckId); collectUIInformation(rsDeckId); } @@ -574,8 +572,7 @@ void SidebarController::OpenThenSwitchToDeck ( pSplitWindow->FadeIn(); RequestOpenDeck(); SwitchToDeck(rsDeckId); - mpTabBar->Invalidate(); - mpTabBar->HighlightDeck(rsDeckId); + } void SidebarController::SwitchToDefaultDeck() @@ -715,6 +712,7 @@ void SidebarController::SwitchToDeck ( msCurrentDeckId = rDeckDescriptor.msId; } + mpTabBar->Invalidate(); mpTabBar->HighlightDeck(msCurrentDeckId); // Determine the panels to display in the deck. |