diff options
author | Loren Shih <seraph@lindenlab.com> | 2010-05-17 20:42:03 -0400 |
---|---|---|
committer | Loren Shih <seraph@lindenlab.com> | 2010-05-17 20:42:03 -0400 |
commit | bc90ff8840d9fe69e658eb81d4a001b83deb9957 (patch) | |
tree | 32c2558e0dc07c3b5c01f340f8847ce3b0ef7981 /indra/newview/llappearancemgr.cpp | |
parent | 77068bcf311801b747a2dba2afc442fb68b8baba (diff) | |
parent | 01eca6f45ee3abf599e669cdf90f4316899f8a22 (diff) |
automated merge
Diffstat (limited to 'indra/newview/llappearancemgr.cpp')
-rw-r--r-- | indra/newview/llappearancemgr.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/llappearancemgr.cpp b/indra/newview/llappearancemgr.cpp index bcaba34921..be840cc348 100644 --- a/indra/newview/llappearancemgr.cpp +++ b/indra/newview/llappearancemgr.cpp @@ -55,6 +55,25 @@ char ORDER_NUMBER_SEPARATOR('@'); +// support for secondlife:///app/appearance SLapps +class LLAppearanceHandler : public LLCommandHandler +{ +public: + // requests will be throttled from a non-trusted browser + LLAppearanceHandler() : LLCommandHandler("appearance", UNTRUSTED_THROTTLE) {} + + bool handle(const LLSD& params, const LLSD& query_map, LLMediaCtrl* web) + { + // support secondlife:///app/appearance/show, but for now we just + // make all secondlife:///app/appearance SLapps behave this way + LLSideTray::getInstance()->showPanel("sidepanel_appearance", LLSD()); + return true; + } +}; + +LLAppearanceHandler gAppearanceHandler; + + LLUUID findDescendentCategoryIDByName(const LLUUID& parent_id, const std::string& name) { LLInventoryModel::cat_array_t cat_array; |