From 6fe4815217a11a36aa2e2b1d8b040eff007bb631 Mon Sep 17 00:00:00 2001
From: Leslie Linden <leslie@lindenlab.com>
Date: Fri, 30 Sep 2011 15:26:48 -0700
Subject: [PATCH] Updated FUI floater toggle function to handle closing windows
 that are initialized with chrome.

---
 indra/llui/llfloaterreg.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/llui/llfloaterreg.cpp b/indra/llui/llfloaterreg.cpp
index 8a0513f2465..27e96856b3e 100644
--- a/indra/llui/llfloaterreg.cpp
+++ b/indra/llui/llfloaterreg.cpp
@@ -483,7 +483,7 @@ void LLFloaterReg::toggleToolbarFloaterInstance(const LLSD& sdname)
 	{
 		showInstance(name, key, TRUE);
 	}
-	else if (!instance->hasFocus())
+	else if (!instance->hasFocus() && !instance->getIsChrome())
 	{
 		instance->setFocus(TRUE);
 	}
-- 
GitLab