diff options
Diffstat (limited to 'linden/indra/newview/llpanelavatar.cpp')
-rw-r--r-- | linden/indra/newview/llpanelavatar.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp index d48237f..8c367fa 100644 --- a/linden/indra/newview/llpanelavatar.cpp +++ b/linden/indra/newview/llpanelavatar.cpp | |||
@@ -789,6 +789,9 @@ void LLPanelAvatarClassified::refresh() | |||
789 | S32 tab_count = tabs ? tabs->getTabCount() : 0; | 789 | S32 tab_count = tabs ? tabs->getTabCount() : 0; |
790 | 790 | ||
791 | bool allow_new = tab_count < MAX_CLASSIFIEDS; | 791 | bool allow_new = tab_count < MAX_CLASSIFIEDS; |
792 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | ||
793 | allow_new &= !gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC); | ||
794 | // [/RLVa:KB] | ||
792 | bool allow_delete = (tab_count > 0); | 795 | bool allow_delete = (tab_count > 0); |
793 | bool show_help = (tab_count == 0); | 796 | bool show_help = (tab_count == 0); |
794 | 797 | ||
@@ -924,6 +927,12 @@ void LLPanelAvatarClassified::processAvatarClassifiedReply(LLMessageSystem* msg, | |||
924 | // static | 927 | // static |
925 | void LLPanelAvatarClassified::onClickNew(void* data) | 928 | void LLPanelAvatarClassified::onClickNew(void* data) |
926 | { | 929 | { |
930 | // [RLVa:KB] - Version: 1.22.11 | Checked: 2009-07-04 (RLVa-1.0.0a) | ||
931 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) | ||
932 | { | ||
933 | return; | ||
934 | } | ||
935 | // [/RLVa:KB] | ||
927 | LLPanelAvatarClassified* self = (LLPanelAvatarClassified*)data; | 936 | LLPanelAvatarClassified* self = (LLPanelAvatarClassified*)data; |
928 | 937 | ||
929 | gViewerWindow->alertXml("AddClassified",callbackNew,self); | 938 | gViewerWindow->alertXml("AddClassified",callbackNew,self); |
@@ -1020,7 +1029,10 @@ void LLPanelAvatarPicks::refresh() | |||
1020 | BOOL self = (gAgent.getID() == getPanelAvatar()->getAvatarID()); | 1029 | BOOL self = (gAgent.getID() == getPanelAvatar()->getAvatarID()); |
1021 | LLTabContainer* tabs = getChild<LLTabContainer>("picks tab"); | 1030 | LLTabContainer* tabs = getChild<LLTabContainer>("picks tab"); |
1022 | S32 tab_count = tabs ? tabs->getTabCount() : 0; | 1031 | S32 tab_count = tabs ? tabs->getTabCount() : 0; |
1023 | childSetEnabled("New...", self && tab_count < MAX_AVATAR_PICKS); | 1032 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) |
1033 | childSetEnabled("New...", self && tab_count < MAX_AVATAR_PICKS && (!gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) ); | ||
1034 | // [/RLVa:KB] | ||
1035 | //childSetEnabled("New...", self && tab_count < MAX_AVATAR_PICKS); | ||
1024 | childSetEnabled("Delete...", self && tab_count > 0); | 1036 | childSetEnabled("Delete...", self && tab_count > 0); |
1025 | childSetVisible("New...", self && getPanelAvatar()->isEditable()); | 1037 | childSetVisible("New...", self && getPanelAvatar()->isEditable()); |
1026 | childSetVisible("Delete...", self && getPanelAvatar()->isEditable()); | 1038 | childSetVisible("Delete...", self && getPanelAvatar()->isEditable()); |
@@ -1098,6 +1110,12 @@ void LLPanelAvatarPicks::processAvatarPicksReply(LLMessageSystem* msg, void**) | |||
1098 | // static | 1110 | // static |
1099 | void LLPanelAvatarPicks::onClickNew(void* data) | 1111 | void LLPanelAvatarPicks::onClickNew(void* data) |
1100 | { | 1112 | { |
1113 | // [RLVa:KB] - Checked: 2009-07-04 (RLVa-1.0.0a) | ||
1114 | if (gRlvHandler.hasBehaviour(RLV_BHVR_SHOWLOC)) | ||
1115 | { | ||
1116 | return; | ||
1117 | } | ||
1118 | // [/RLVa:KB] | ||
1101 | LLPanelAvatarPicks* self = (LLPanelAvatarPicks*)data; | 1119 | LLPanelAvatarPicks* self = (LLPanelAvatarPicks*)data; |
1102 | LLPanelPick* panel_pick = new LLPanelPick(FALSE); | 1120 | LLPanelPick* panel_pick = new LLPanelPick(FALSE); |
1103 | LLTabContainer* tabs = self->getChild<LLTabContainer>("picks tab"); | 1121 | LLTabContainer* tabs = self->getChild<LLTabContainer>("picks tab"); |