summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sfx2/source/sidebar/SidebarController.cxx6
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.