diff options
| author | maxim_productengine <mnikolenko@productengine.com> | 2019-03-25 15:38:26 +0200 |
|---|---|---|
| committer | maxim_productengine <mnikolenko@productengine.com> | 2019-03-25 15:38:26 +0200 |
| commit | e0b24ee960c7a7eebb9e7d6e4b5974973eb3da00 (patch) | |
| tree | eac06277e3a497edb01ef1ec5032c198a705898a /indra/newview/llavataractions.cpp | |
| parent | 90297f27547e7f9c591079cd99860e4a9f5e7f2c (diff) | |
SL-10798 FIXED [Legacy Profiles] 'Picks' toolbar button does nothing
Diffstat (limited to 'indra/newview/llavataractions.cpp')
| -rw-r--r-- | indra/newview/llavataractions.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/newview/llavataractions.cpp b/indra/newview/llavataractions.cpp index ecfb2cd5a8..fa4090c5fe 100644 --- a/indra/newview/llavataractions.cpp +++ b/indra/newview/llavataractions.cpp @@ -382,6 +382,20 @@ void LLAvatarActions::showPick(const LLUUID& avatar_id, const LLUUID& pick_id) } // static +bool LLAvatarActions::isPickTabSelected(const LLUUID& avatar_id) +{ + if (avatar_id.notNull()) + { + LLFloaterProfile* profilefloater = LLFloaterReg::findTypedInstance<LLFloaterProfile>("profile", LLSD().with("id", avatar_id)); + if (profilefloater) + { + return profilefloater->isPickTabSelected(); + } + } + return false; +} + +// static void LLAvatarActions::showClassifieds(const LLUUID& avatar_id) { if (avatar_id.notNull()) |
