Move click_for_profile into LLNameUI base for use in nameboxes

This allows having a linked name text on profiles without it stealing mouse
This commit is contained in:
Liru Færs
2020-01-24 21:48:15 -05:00
parent a9e2672820
commit 9a53824d6d
6 changed files with 17 additions and 10 deletions

View File

@@ -46,9 +46,10 @@
// statics
std::set<LLNameUI*> LLNameUI::sInstances;
LLNameUI::LLNameUI(const std::string& loading, bool rlv_sensitive, const LLUUID& id, const Type& type, const std::string& name_system)
LLNameUI::LLNameUI(const std::string& loading, bool rlv_sensitive, const LLUUID& id, const Type& type, const std::string& name_system, bool click_for_profile)
: mNameID(id), mRLVSensitive(rlv_sensitive), mType(NONE), mAllowInteract(false)
, mNameSystem(name_system.empty() ? "PhoenixNameSystem" : name_system), mInitialValue(!loading.empty() ? loading : LLTrans::getString("LoadingData"))
, mClickForProfile(click_for_profile)
{
setType(type);
}