Option to Disallow communicate shortcut opening detached friends list

Added CommunicateSpecificShortcut
Added checkbox to Text Chat preferences
This commit is contained in:
Lirusaito
2013-01-08 13:48:18 -05:00
parent 820b4ea358
commit 68911876b9
4 changed files with 19 additions and 2 deletions

View File

@@ -2062,7 +2062,8 @@ class LLViewCommunicate : public view_listener_t
{
bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata)
{
if (LLFloaterChatterBox::getInstance()->getFloaterCount() == 0)
static LLCachedControl<bool> only_comm("CommunicateSpecificShortcut");
if (!only_comm && LLFloaterChatterBox::getInstance()->getFloaterCount() == 0)
{
LLFloaterMyFriends::toggleInstance();
}