diff options
| author | Igor Borovkov <iborovkov@productengine.com> | 2009-11-13 14:00:03 +0200 | 
|---|---|---|
| committer | Igor Borovkov <iborovkov@productengine.com> | 2009-11-13 14:00:03 +0200 | 
| commit | 937c8c8595972947e901a580b656c45d0e5b27a0 (patch) | |
| tree | 317e1062385e07cd9a11bf18ed51ed0c620b43cf | |
| parent | 1db5d35447478a74ece447297289d76bfef8c48c (diff) | |
| parent | 9e11895c258d4dc7bc141804d8b7aa2762de4013 (diff) | |
merge
--HG--
branch : product-engine
| -rw-r--r-- | indra/newview/llchathistory.cpp | 6 | ||||
| -rw-r--r-- | indra/newview/llimpanel.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/llpanelpeople.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/llspeakers.cpp | 3 | ||||
| -rw-r--r-- | indra/newview/lltoastimpanel.cpp | 2 | ||||
| -rw-r--r-- | indra/newview/skins/default/xui/en/menu_people_groups_view_sort.xml | 12 | 
6 files changed, 15 insertions, 13 deletions
| diff --git a/indra/newview/llchathistory.cpp b/indra/newview/llchathistory.cpp index 046e1d92dc..5efecfa78f 100644 --- a/indra/newview/llchathistory.cpp +++ b/indra/newview/llchathistory.cpp @@ -53,7 +53,7 @@ std::string formatCurrentTime()  	time_t utc_time;  	utc_time = time_corrected();  	std::string timeStr ="["+ LLTrans::getString("TimeHour")+"]:[" -		+LLTrans::getString("TimeMin")+"] "; +		+LLTrans::getString("TimeMin")+"]";  	LLSD substitution; @@ -344,7 +344,9 @@ LLView* LLChatHistory::getHeader(const LLChat& chat,const LLStyle::Params& style  void LLChatHistory::appendWidgetMessage(const LLChat& chat, LLStyle::Params& style_params)  {  	LLView* view = NULL; -	std::string view_text = "\n[" + formatCurrentTime() + "] " + chat.mFromName + ": "; +	std::string view_text = "\n[" + formatCurrentTime() + "] "; +	if (utf8str_trim(chat.mFromName).size() != 0 && chat.mFromName != SYSTEM_FROM) +		view_text += chat.mFromName + ": ";  	LLInlineViewSegment::Params p;  	p.force_newline = true; diff --git a/indra/newview/llimpanel.cpp b/indra/newview/llimpanel.cpp index 0b8b5935f8..3178658faa 100644 --- a/indra/newview/llimpanel.cpp +++ b/indra/newview/llimpanel.cpp @@ -849,7 +849,8 @@ void LLFloaterIMPanel::processSessionUpdate(const LLSD& session_update)  		//update the speakers dropdown too -		mSpeakerPanel->setVoiceModerationCtrlMode(voice_moderated); +		if (mSpeakerPanel) +			mSpeakerPanel->setVoiceModerationCtrlMode(voice_moderated);  	}  } diff --git a/indra/newview/llpanelpeople.cpp b/indra/newview/llpanelpeople.cpp index 9ba94c8ca9..ba30a4710a 100644 --- a/indra/newview/llpanelpeople.cpp +++ b/indra/newview/llpanelpeople.cpp @@ -519,7 +519,6 @@ BOOL LLPanelPeople::postBuild()  	LLPanel* groups_panel = getChild<LLPanel>(GROUP_TAB_NAME);  	groups_panel->childSetAction("activate_btn", boost::bind(&LLPanelPeople::onActivateButtonClicked,	this));  	groups_panel->childSetAction("plus_btn",	boost::bind(&LLPanelPeople::onGroupPlusButtonClicked,	this)); -	groups_panel->childSetAction("minus_btn",	boost::bind(&LLPanelPeople::onGroupMinusButtonClicked,	this));  	LLPanel* friends_panel = getChild<LLPanel>(FRIENDS_TAB_NAME);  	friends_panel->childSetAction("add_btn",	boost::bind(&LLPanelPeople::onAddFriendWizButtonClicked,	this)); @@ -568,6 +567,7 @@ BOOL LLPanelPeople::postBuild()  	LLUICtrl::EnableCallbackRegistry::ScopedRegistrar enable_registrar;  	registrar.add("People.Group.Plus.Action",  boost::bind(&LLPanelPeople::onGroupPlusMenuItemClicked,  this, _2)); +	registrar.add("People.Group.Minus.Action", boost::bind(&LLPanelPeople::onGroupMinusButtonClicked,  this));  	registrar.add("People.Friends.ViewSort.Action",  boost::bind(&LLPanelPeople::onFriendsViewSortMenuItemClicked,  this, _2));  	registrar.add("People.Nearby.ViewSort.Action",  boost::bind(&LLPanelPeople::onNearbyViewSortMenuItemClicked,  this, _2));  	registrar.add("People.Groups.ViewSort.Action",  boost::bind(&LLPanelPeople::onGroupsViewSortMenuItemClicked,  this, _2)); diff --git a/indra/newview/llspeakers.cpp b/indra/newview/llspeakers.cpp index 2ed82b7d62..261bdbcfc0 100644 --- a/indra/newview/llspeakers.cpp +++ b/indra/newview/llspeakers.cpp @@ -359,6 +359,9 @@ void LLSpeakerMgr::updateSpeakerList()  LLPointer<LLSpeaker> LLSpeakerMgr::findSpeaker(const LLUUID& speaker_id)  { +	//In some conditions map causes crash if it is empty(Windows only), adding check (EK) +	if (mSpeakers.size() == 0) +		return NULL;  	speaker_map_t::iterator found_it = mSpeakers.find(speaker_id);  	if (found_it == mSpeakers.end())  	{ diff --git a/indra/newview/lltoastimpanel.cpp b/indra/newview/lltoastimpanel.cpp index 9370e318cf..1ea5f515b7 100644 --- a/indra/newview/lltoastimpanel.cpp +++ b/indra/newview/lltoastimpanel.cpp @@ -69,7 +69,7 @@ LLToastIMPanel::LLToastIMPanel(LLToastIMPanel::Params &p) :	LLToastPanel(p.notif  	mNotification = p.notification;  	// if message comes from the system - there shouldn't be a reply btn -	if(p.from == "Second Life") +	if(p.from == SYSTEM_FROM)  	{  		mAvatar->setVisible(FALSE);  		sys_msg_icon->setVisible(TRUE); diff --git a/indra/newview/skins/default/xui/en/menu_people_groups_view_sort.xml b/indra/newview/skins/default/xui/en/menu_people_groups_view_sort.xml index 6dd44255bf..304492bedb 100644 --- a/indra/newview/skins/default/xui/en/menu_people_groups_view_sort.xml +++ b/indra/newview/skins/default/xui/en/menu_people_groups_view_sort.xml @@ -13,15 +13,11 @@         function="CheckControl"         parameter="GroupListShowIcons" />    </menu_item_check> -  <menu_item_check +  <menu_item_call     label="Leave Selected Group"     layout="topleft"     name="Leave Selected Group"> -      <menu_item_check.on_click -       function="People.Groups.ViewSort.Action" -       parameter="show_icons" /> -      <menu_item_check.on_check -       function="CheckControl" -       parameter="GroupListShowIcons" /> -  </menu_item_check> +      <menu_item_call.on_click +       function="People.Group.Minus.Action"/> +  </menu_item_call>  </menu> | 
