diff options
| author | maxim@mnikolenko <maxim@mnikolenko> | 2012-12-20 15:23:36 +0200 | 
|---|---|---|
| committer | maxim@mnikolenko <maxim@mnikolenko> | 2012-12-20 15:23:36 +0200 | 
| commit | c81a0b0a5701425aa52521d8600a280d05040517 (patch) | |
| tree | df35718afef642f39d594d871d38431dba26a02b | |
| parent | eb68845767309900b6b5915f6358ae5027fb7136 (diff) | |
CHUI-602 FIXED Don't call getUUID() if there is no selected participants
| -rw-r--r-- | indra/newview/llfloaterimcontainer.cpp | 15 | 
1 files changed, 8 insertions, 7 deletions
| diff --git a/indra/newview/llfloaterimcontainer.cpp b/indra/newview/llfloaterimcontainer.cpp index 58ba186b57..92ea6dacde 100644 --- a/indra/newview/llfloaterimcontainer.cpp +++ b/indra/newview/llfloaterimcontainer.cpp @@ -1101,7 +1101,14 @@ bool LLFloaterIMContainer::enableContextMenuItem(const LLSD& userdata)  	uuid_vec_t uuids;  	getParticipantUUIDs(uuids); -    if("can_activate_group" == item) + +	// If nothing is selected, everything needs to be disabled +	if (uuids.size() <= 0) +    { +        return false; +    } + +	if("can_activate_group" == item)      {      	LLUUID selected_group_id = getCurSelectedViewModelItem()->getUUID();      	return gAgent.getGroupID() != selected_group_id; @@ -1116,12 +1123,6 @@ bool LLFloaterIMContainer::enableContextMenuItem(const std::string& item, uuid_v  	{  		return gSavedSettings.getBOOL("KeepConversationLogTranscripts");  	} - -	// If nothing is selected, everything needs to be disabled -	if (uuids.size() <= 0) -    { -        return false; -    }  	// Extract the single select info  	bool is_single_select = (uuids.size() == 1); | 
