diff options
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
| -rw-r--r-- | indra/newview/llfloaterpreference.cpp | 9 | 
1 files changed, 9 insertions, 0 deletions
| diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index eeda3f133c..e77c93b5f8 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -1430,6 +1430,7 @@ BOOL LLPanelPreference::postBuild()  	if (hasChild("media_enabled"))  	{  		bool media_enabled = gSavedSettings.getBOOL("AudioStreamingMedia"); +		getChild<LLCheckBoxCtrl>("voice_call_friends_only_check")->setCommitCallback(boost::bind(&showFriendsOnlyWarning, _1, _2));  		getChild<LLCheckBoxCtrl>("media_enabled")->set(media_enabled);  		getChild<LLCheckBoxCtrl>("autoplay_enabled")->setEnabled(media_enabled);  	} @@ -1486,6 +1487,14 @@ void LLPanelPreference::saveSettings()  	}	  } +void LLPanelPreference::showFriendsOnlyWarning(LLUICtrl* checkbox, const LLSD& value) +{ +	if (checkbox && checkbox->getValue()) +	{ +		LLNotificationsUtil::add("FriendsAndGroupsOnly"); +	} +} +  void LLPanelPreference::cancel()  {  	for (control_values_map_t::iterator iter =  mSavedValues.begin(); | 
