diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-04-16 02:09:03 +0300 |
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2022-04-16 02:13:49 +0300 |
| commit | 3fb9993a4a74c19b872bb96ed4878cd7b7143208 (patch) | |
| tree | 2cd2e1d0f026ce003a199c437a5a575fb5ec486b /indra/newview/llpanelavatar.cpp | |
| parent | c9b83e8117026aa7fc70da3972049152a669b0fc (diff) | |
SL-15312 Legacy profiles remake #9
Cleanup obsolete properties processesing
Diffstat (limited to 'indra/newview/llpanelavatar.cpp')
| -rw-r--r-- | indra/newview/llpanelavatar.cpp | 36 |
1 files changed, 26 insertions, 10 deletions
diff --git a/indra/newview/llpanelavatar.cpp b/indra/newview/llpanelavatar.cpp index fada9cc98b..90f3e87ae9 100644 --- a/indra/newview/llpanelavatar.cpp +++ b/indra/newview/llpanelavatar.cpp @@ -76,23 +76,13 @@ LLPanelProfileTab::LLPanelProfileTab() LLPanelProfileTab::~LLPanelProfileTab() { - if(getAvatarId().notNull()) - { - LLAvatarPropertiesProcessor::getInstance()->removeObserver(getAvatarId(),this); - } } void LLPanelProfileTab::setAvatarId(const LLUUID& avatar_id) { if (avatar_id.notNull()) { - if (getAvatarId().notNull()) - { - LLAvatarPropertiesProcessor::getInstance()->removeObserver(mAvatarId, this); - } mAvatarId = avatar_id; - LLAvatarPropertiesProcessor::getInstance()->addObserver(getAvatarId(), this); - mSelfProfile = (getAvatarId() == gAgentID); } } @@ -130,3 +120,29 @@ void LLPanelProfileTab::setApplyProgress(bool started) } } } + +LLPanelProfilePropertiesPeocessorTab::LLPanelProfilePropertiesPeocessorTab() + : LLPanelProfileTab() +{ +} + +LLPanelProfilePropertiesPeocessorTab::~LLPanelProfilePropertiesPeocessorTab() +{ + if (getAvatarId().notNull()) + { + LLAvatarPropertiesProcessor::getInstance()->removeObserver(getAvatarId(), this); + } +} + +void LLPanelProfilePropertiesPeocessorTab::setAvatarId(const LLUUID & avatar_id) +{ + if (avatar_id.notNull()) + { + if (getAvatarId().notNull()) + { + LLAvatarPropertiesProcessor::getInstance()->removeObserver(getAvatarId(), this); + } + LLPanelProfileTab::setAvatarId(avatar_id); + LLAvatarPropertiesProcessor::getInstance()->addObserver(getAvatarId(), this); + } +} |
