summaryrefslogtreecommitdiff
path: root/indra/newview/llavatariconctrl.cpp
diff options
context:
space:
mode:
authormaksymsproductengine <maksymsproductengine@lindenlab.com>2014-09-09 21:53:14 +0300
committermaksymsproductengine <maksymsproductengine@lindenlab.com>2014-09-09 21:53:14 +0300
commitb4704f5f8bf4b72edcf00aa74759ae73c89c5422 (patch)
tree691596f632ef36d7ec1c0705ada0a9f4070f8139 /indra/newview/llavatariconctrl.cpp
parent1285807ec2f58c7dcab2f747461195e126ef26e3 (diff)
parentb1c5edc5135b4ade68b0aa839506ea013dc2f40d (diff)
Merge viewer-bear and become version 3.7.16
Diffstat (limited to 'indra/newview/llavatariconctrl.cpp')
-rwxr-xr-xindra/newview/llavatariconctrl.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/indra/newview/llavatariconctrl.cpp b/indra/newview/llavatariconctrl.cpp
index b89b0d9900..746b541f9d 100755
--- a/indra/newview/llavatariconctrl.cpp
+++ b/indra/newview/llavatariconctrl.cpp
@@ -247,7 +247,7 @@ void LLAvatarIconCtrl::setValue(const LLSD& value)
{
LLAvatarPropertiesProcessor* app =
LLAvatarPropertiesProcessor::getInstance();
- if (mAvatarId.notNull() && mAvatarId != value.asUUID())
+ if (mAvatarId.notNull())
{
app->removeObserver(mAvatarId, this);
}
@@ -255,7 +255,6 @@ void LLAvatarIconCtrl::setValue(const LLSD& value)
if (mAvatarId != value.asUUID())
{
mAvatarId = value.asUUID();
- app->addObserver(mAvatarId, this);
// *BUG: This will return stale icons if a user changes their
// profile picture. However, otherwise we send too many upstream
@@ -271,7 +270,7 @@ void LLAvatarIconCtrl::setValue(const LLSD& value)
// People API, rather than sending AvatarPropertyRequest
// messages. People API already hits the user table.
LLIconCtrl::setValue(mDefaultIconName);
- // duplicated requests are filtered later if there are any
+ app->addObserver(mAvatarId, this);
app->sendAvatarPropertiesRequest(mAvatarId);
}
}