diff options
| author | maxim_productengine <mnikolenko@productengine.com> | 2018-09-12 17:42:23 +0300 | 
|---|---|---|
| committer | maxim_productengine <mnikolenko@productengine.com> | 2018-09-12 17:42:23 +0300 | 
| commit | 228a25256e7b1a7919d33a8289430282f5fecbb0 (patch) | |
| tree | 530a34548d3994da63562a175150e12a57bcffc5 /indra/newview | |
| parent | 6e00f93f8deb66f35259e945efb4d360274b9d1e (diff) | |
SL-1397 FIXED Check mark doesn't switch when clicking on the label "Mute when minimized" in Preferences
Diffstat (limited to 'indra/newview')
| -rw-r--r-- | indra/newview/llfloaterpreference.cpp | 11 | ||||
| -rw-r--r-- | indra/newview/llfloaterpreference.h | 1 | 
2 files changed, 12 insertions, 0 deletions
| diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 7aff9fb586..f2e7058098 100644 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -2329,6 +2329,11 @@ BOOL LLPanelPreference::postBuild()  		bool show_favorites_at_login = LLPanelLogin::getShowFavorites();  		getChild<LLCheckBoxCtrl>("favorites_on_login_check")->setValue(show_favorites_at_login);  	} +	if (hasChild("mute_chb_label", TRUE)) +	{ +		getChild<LLTextBox>("mute_chb_label")->setShowCursorHand(false); +		getChild<LLTextBox>("mute_chb_label")->setClickedCallback(boost::bind(&toggleMuteWhenMinimized)); +	}  	//////////////////////PanelAdvanced ///////////////////  	if (hasChild("modifier_combo", TRUE)) @@ -2438,6 +2443,12 @@ void LLPanelPreference::handleFavoritesOnLoginChanged(LLUICtrl* checkbox, const  	}  } +void LLPanelPreference::toggleMuteWhenMinimized() +{ +	std::string mute("MuteWhenMinimized"); +	gSavedSettings.setBOOL(mute, !gSavedSettings.getBOOL(mute)); +} +  void LLPanelPreference::cancel()  {  	for (control_values_map_t::iterator iter =  mSavedValues.begin(); diff --git a/indra/newview/llfloaterpreference.h b/indra/newview/llfloaterpreference.h index 8339a18296..a24b69ddbf 100644 --- a/indra/newview/llfloaterpreference.h +++ b/indra/newview/llfloaterpreference.h @@ -244,6 +244,7 @@ private:  	//for "Show my Favorite Landmarks at Login"  	static void handleFavoritesOnLoginChanged(LLUICtrl* checkbox, const LLSD& value); +	static void toggleMuteWhenMinimized();  	typedef std::map<std::string, LLColor4> string_color_map_t;  	string_color_map_t mSavedColors; | 
