diff --git a/indra/llui/llfloaterreglistener.cpp b/indra/llui/llfloaterreglistener.cpp index 37708a7cd9db2c9483fde276f2220738c83e4bba..cb8fa6dfdaefafb72044813c1b796d5ec2d6250a 100644 --- a/indra/llui/llfloaterreglistener.cpp +++ b/indra/llui/llfloaterreglistener.cpp @@ -27,6 +27,7 @@ LLFloaterRegListener::LLFloaterRegListener(const std::string& pumpName): requiredName["name"] = LLSD(); add("showInstance", &LLFloaterRegListener::showInstance, requiredName); add("hideInstance", &LLFloaterRegListener::hideInstance, requiredName); + add("toggleInstance", &LLFloaterRegListener::toggleInstance, requiredName); } void LLFloaterRegListener::getBuildMap(const LLSD& event) const @@ -58,3 +59,8 @@ void LLFloaterRegListener::hideInstance(const LLSD& event) const { LLFloaterReg::hideInstance(event["name"], event["key"]); } + +void LLFloaterRegListener::toggleInstance(const LLSD& event) const +{ + LLFloaterReg::toggleInstance(event["name"], event["key"]); +} diff --git a/indra/llui/llfloaterreglistener.h b/indra/llui/llfloaterreglistener.h index 049389c0940f986b5c277bfdee6375a9f1142d02..58d2c0793658ffa7e81d65f2c3e0c906b5a4e291 100644 --- a/indra/llui/llfloaterreglistener.h +++ b/indra/llui/llfloaterreglistener.h @@ -29,6 +29,7 @@ class LLFloaterRegListener: public LLDispatchListener void getBuildMap(const LLSD& event) const; void showInstance(const LLSD& event) const; void hideInstance(const LLSD& event) const; + void toggleInstance(const LLSD& event) const; }; #endif /* ! defined(LL_LLFLOATERREGLISTENER_H) */