From 70b9dd6ee6af483bf1c96631bb25fd6a3703b351 Mon Sep 17 00:00:00 2001
From: William Todd Stinson <stinson@lindenlab.com>
Date: Thu, 15 Nov 2012 10:41:53 -0800
Subject: [PATCH] CHUI-524: FIX Removing a function call that results in a
 circular logic loop and an eventual stack overflow crash.

---
 indra/newview/llfloaterimsessiontab.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp
index 3a1cc2880a7..26a97ea422b 100644
--- a/indra/newview/llfloaterimsessiontab.cpp
+++ b/indra/newview/llfloaterimsessiontab.cpp
@@ -313,7 +313,13 @@ void LLFloaterIMSessionTab::onFocusReceived()
 	if (container)
 	{
 		container->selectConversationPair(mSessionID, true);
+		// XXX stinson 11/15/2012 : calling show stub from this focus handler results in a circular
+		// logic loop of function calls that eventually result in a stack overflow.
+		// See CHUI-524 for documentation
+#define	XXX_STINSON_HACK_CHUI_524 1
+#if !XXX_STINSON_HACK_CHUI_524
 		container->showStub(! getHost());
+#endif
 	}
 }
 
-- 
GitLab