From 61555ce1f0d2b45ec21fe123ab604b6e18c21ccc Mon Sep 17 00:00:00 2001
From: Sergei Litovchuk <slitovchuk@productengine.com>
Date: Wed, 1 Sep 2010 22:58:29 +0300
Subject: [PATCH] VWR-20696 ADDITIONAL FIX Added calling onOpen() for tabs
 being undocked.

Reviewed by Vadim Savchuk.
---
 indra/newview/llsidetray.cpp | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/indra/newview/llsidetray.cpp b/indra/newview/llsidetray.cpp
index 3f0c1fa946..9893370dcf 100644
--- a/indra/newview/llsidetray.cpp
+++ b/indra/newview/llsidetray.cpp
@@ -250,6 +250,13 @@ void LLSideTrayTab::toggleTabDocked()
 		{
 			side_tray->collapseSideBar();
 		}
+
+		if (side_tray->getActiveTab() != this)
+		{
+			// When a tab other then current active tab is detached from Side Tray
+			// onOpen() should be called as tab visibility is changed.
+			onOpen(LLSD());
+		}
 	}
 	else
 	{
-- 
GitLab