diff options
Diffstat (limited to 'indra/llui')
| -rw-r--r-- | indra/llui/llfloaterreg.cpp | 6 | ||||
| -rw-r--r-- | indra/llui/llfloaterreg.h | 1 | 
2 files changed, 7 insertions, 0 deletions
| diff --git a/indra/llui/llfloaterreg.cpp b/indra/llui/llfloaterreg.cpp index 7c0933f554..36a0cb0fd0 100644 --- a/indra/llui/llfloaterreg.cpp +++ b/indra/llui/llfloaterreg.cpp @@ -58,6 +58,12 @@ void LLFloaterReg::add(const std::string& name, const std::string& filename, con  }  //static +bool LLFloaterReg::isRegistered(const std::string& name) +{ +    return sBuildMap.find(name) != sBuildMap.end(); +} + +//static  LLFloater* LLFloaterReg::getLastFloaterInGroup(const std::string& name)  {  	const std::string& groupname = sGroupMap[name]; diff --git a/indra/llui/llfloaterreg.h b/indra/llui/llfloaterreg.h index e3b17dcb4f..a457a15673 100644 --- a/indra/llui/llfloaterreg.h +++ b/indra/llui/llfloaterreg.h @@ -85,6 +85,7 @@ public:  	static void add(const std::string& name, const std::string& file, const LLFloaterBuildFunc& func,  					const std::string& groupname = LLStringUtil::null); +	static bool isRegistered(const std::string& name);  	// Helpers  	static LLFloater* getLastFloaterInGroup(const std::string& name); | 
