Disable "Map" button in contacts floater if RLV prevents user from opening the world map

Ansariel 2014-07-18 13:51:17 +02:00
parent d0417d3494
commit 8dfee097a1
1 changed files with 1 additions and 1 deletions

View File

@ -778,7 +778,7 @@ void FSFloaterContacts::refreshUI()
LLUUID av_id = selected_item->getUUID();
mappable = (single_selected && !multiple_selected && av_id.notNull() && is_agent_mappable(av_id));
}
childSetEnabled("map_btn", mappable);
childSetEnabled("map_btn", mappable && !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWWORLDMAP));
// Set friend count
LLStringUtil::format_map_t args;