diff options
| author | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-06-09 22:02:42 +0300 | 
|---|---|---|
| committer | andreykproductengine <andreykproductengine@lindenlab.com> | 2017-06-09 22:02:42 +0300 | 
| commit | 34cfd3714b8c8f14effd55001191b0519861e2b0 (patch) | |
| tree | 9526dc0386572b50922f1034d915a8d1d2a4c7ad /indra | |
| parent | da91a1506cd7c3072c38a8e276e3584822926eed (diff) | |
MAINT-7478 Fixed "No callback" log spam
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llfloaterimnearbychat.cpp | 10 | ||||
| -rw-r--r-- | indra/newview/llfloaterimsessiontab.cpp | 5 | 
2 files changed, 15 insertions, 0 deletions
| diff --git a/indra/newview/llfloaterimnearbychat.cpp b/indra/newview/llfloaterimnearbychat.cpp index 7895a5ff48..b2568abb83 100644 --- a/indra/newview/llfloaterimnearbychat.cpp +++ b/indra/newview/llfloaterimnearbychat.cpp @@ -87,6 +87,10 @@ static LLChatTypeTrigger sChatTypeTriggers[] = {  	{ "/shout"	, CHAT_TYPE_SHOUT}  }; +bool cb_do_nothing() +{ +	return false; +}  LLFloaterIMNearbyChat::LLFloaterIMNearbyChat(const LLSD& llsd)  :	LLFloaterIMSessionTab(LLSD(LLUUID::null)), @@ -97,6 +101,12 @@ LLFloaterIMNearbyChat::LLFloaterIMNearbyChat(const LLSD& llsd)      mIsP2PChat = false;  	mIsNearbyChat = true;  	mSpeakerMgr = LLLocalSpeakerMgr::getInstance(); + +	// Required by LLFloaterIMSessionTab::mGearBtn +	// But nearby floater has no 'per agent' menu items,  +	mEnableCallbackRegistrar.add("Avatar.EnableGearItem", boost::bind(&cb_do_nothing)); +	mCommitCallbackRegistrar.add("Avatar.GearDoToSelected", boost::bind(&cb_do_nothing)); +	mEnableCallbackRegistrar.add("Avatar.CheckGearItem", boost::bind(&cb_do_nothing));  }  //static diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp index 2cd94c592a..e8dbd2598e 100644 --- a/indra/newview/llfloaterimsessiontab.cpp +++ b/indra/newview/llfloaterimsessiontab.cpp @@ -46,6 +46,10 @@  const F32 REFRESH_INTERVAL = 1.0f; +void cb_do_nothing() +{ +} +  LLFloaterIMSessionTab::LLFloaterIMSessionTab(const LLSD& session_id)  :	LLTransientDockableFloater(NULL, false, session_id),  	mIsP2PChat(false), @@ -82,6 +86,7 @@ LLFloaterIMSessionTab::LLFloaterIMSessionTab(const LLSD& session_id)      mEnableCallbackRegistrar.add("Avatar.CheckItem",  boost::bind(&LLFloaterIMSessionTab::checkContextMenuItem,	this, _2));      mEnableCallbackRegistrar.add("Avatar.EnableItem", boost::bind(&LLFloaterIMSessionTab::enableContextMenuItem, this, _2));      mCommitCallbackRegistrar.add("Avatar.DoToSelected", boost::bind(&LLFloaterIMSessionTab::doToSelected, this, _2)); +    mCommitCallbackRegistrar.add("Group.DoToSelected", boost::bind(&cb_do_nothing));  }  LLFloaterIMSessionTab::~LLFloaterIMSessionTab() | 
