Skip to content
Snippets Groups Projects
Commit b6a39ffa authored by Vadim Savchuk's avatar Vadim Savchuk
Browse files

STORM-155 Fixed attempt to show an invisible sidebar tab.

Reason: when you detach the bottommost sidebar tab, the fake open/close tab gets selected, which is invisible.
Fix: select a normal, visible tab.
parent 73ba1f28
No related branches found
No related tags found
No related merge requests found
......@@ -762,8 +762,15 @@ bool LLSideTray::removeTab(LLSideTrayTab* tab)
// Deselect the tab.
if (mActiveTab == tab)
{
child_vector_iter_t next_tab_it =
(tab_it < (mTabs.end() - 1)) ? tab_it + 1 : mTabs.begin();
// Select the next tab (or first one, if we're removing the last tab),
// skipping the fake open/close tab (STORM-155).
child_vector_iter_t next_tab_it = tab_it;
do
{
next_tab_it = (next_tab_it < (mTabs.end() - 1)) ? next_tab_it + 1 : mTabs.begin();
}
while ((*next_tab_it)->getName() == "sidebar_openclose");
selectTabByName((*next_tab_it)->getName(), true); // Don't hide the tab being removed.
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment