Kaydet (Commit) f44ca372 authored tarafından Andre Fischer's avatar Andre Fischer

122082: Show correct deck title and tab bar highlight after switching sidebar decks.

üst 4a84ca3c
...@@ -390,7 +390,6 @@ void SidebarController::UpdateConfigurations (void) ...@@ -390,7 +390,6 @@ void SidebarController::UpdateConfigurations (void)
maCurrentContext, maCurrentContext,
mbIsDocumentReadOnly, mbIsDocumentReadOnly,
mxFrame); mxFrame);
mpTabBar->SetDecks(aDecks);
// Notify the tab bar about the updated set of decks. // Notify the tab bar about the updated set of decks.
mpTabBar->SetDecks(aDecks); mpTabBar->SetDecks(aDecks);
...@@ -422,13 +421,12 @@ void SidebarController::UpdateConfigurations (void) ...@@ -422,13 +421,12 @@ void SidebarController::UpdateConfigurations (void)
// We did not find a valid deck. // We did not find a valid deck.
RequestCloseDeck(); RequestCloseDeck();
return; return;
// Tell the tab bar to highlight the button associated
// with the deck.
mpTabBar->HighlightDeck(sNewDeckId);
} }
msCurrentDeckId = sNewDeckId; // Tell the tab bar to highlight the button associated
// with the deck.
mpTabBar->HighlightDeck(sNewDeckId);
SwitchToDeck( SwitchToDeck(
*ResourceManager::Instance().GetDeckDescriptor(sNewDeckId), *ResourceManager::Instance().GetDeckDescriptor(sNewDeckId),
maCurrentContext); maCurrentContext);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment