Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Alchemy Viewer
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Silent mode is enabled
All outbound communications are blocked.
Learn more
.
Show more breadcrumbs
Alchemy Viewer
Alchemy Viewer
Commits
c227f93b
Commit
c227f93b
authored
15 years ago
by
Sergey Borushevsky
Browse files
Options
Downloads
Patches
Plain Diff
Fixed minor bug EXT-2745 (Contents of Groups field duplicates after IM session has been started)
--HG-- branch : product-engine
parent
b0704256
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
indra/newview/llpanelavatar.cpp
+18
-12
18 additions, 12 deletions
indra/newview/llpanelavatar.cpp
indra/newview/llpanelavatar.h
+3
-1
3 additions, 1 deletion
indra/newview/llpanelavatar.h
with
21 additions
and
13 deletions
indra/newview/llpanelavatar.cpp
+
18
−
12
View file @
c227f93b
...
@@ -359,7 +359,7 @@ void LLPanelAvatarProfile::onOpen(const LLSD& key)
...
@@ -359,7 +359,7 @@ void LLPanelAvatarProfile::onOpen(const LLSD& key)
{
{
LLPanelProfileTab
::
onOpen
(
key
);
LLPanelProfileTab
::
onOpen
(
key
);
mGroups
.
erase
();
mGroups
.
clear
();
//Disable "Add Friend" button for friends.
//Disable "Add Friend" button for friends.
childSetEnabled
(
"add_friend"
,
!
LLAvatarActions
::
isFriend
(
getAvatarId
()));
childSetEnabled
(
"add_friend"
,
!
LLAvatarActions
::
isFriend
(
getAvatarId
()));
...
@@ -391,7 +391,7 @@ void LLPanelAvatarProfile::resetControls()
...
@@ -391,7 +391,7 @@ void LLPanelAvatarProfile::resetControls()
void
LLPanelAvatarProfile
::
resetData
()
void
LLPanelAvatarProfile
::
resetData
()
{
{
mGroups
.
erase
();
mGroups
.
clear
();
childSetValue
(
"2nd_life_pic"
,
LLUUID
::
null
);
childSetValue
(
"2nd_life_pic"
,
LLUUID
::
null
);
childSetValue
(
"real_world_pic"
,
LLUUID
::
null
);
childSetValue
(
"real_world_pic"
,
LLUUID
::
null
);
childSetValue
(
"online_status"
,
LLStringUtil
::
null
);
childSetValue
(
"online_status"
,
LLStringUtil
::
null
);
...
@@ -443,23 +443,29 @@ void LLPanelAvatarProfile::processGroupProperties(const LLAvatarGroups* avatar_g
...
@@ -443,23 +443,29 @@ void LLPanelAvatarProfile::processGroupProperties(const LLAvatarGroups* avatar_g
// Group properties may arrive in two callbacks, we need to save them across
// Group properties may arrive in two callbacks, we need to save them across
// different calls. We can't do that in textbox as textbox may change the text.
// different calls. We can't do that in textbox as textbox may change the text.
std
::
string
groups
=
mGroups
;
LLAvatarGroups
::
group_list_t
::
const_iterator
it
=
avatar_groups
->
group_list
.
begin
();
LLAvatarGroups
::
group_list_t
::
const_iterator
it
=
avatar_groups
->
group_list
.
begin
();
const
LLAvatarGroups
::
group_list_t
::
const_iterator
it_end
=
avatar_groups
->
group_list
.
end
();
const
LLAvatarGroups
::
group_list_t
::
const_iterator
it_end
=
avatar_groups
->
group_list
.
end
();
if
(
groups
.
empty
()
&&
it_end
!=
it
)
{
groups
=
(
*
it
).
group_name
;
++
it
;
}
for
(;
it_end
!=
it
;
++
it
)
for
(;
it_end
!=
it
;
++
it
)
{
{
LLAvatarGroups
::
LLGroupData
group_data
=
*
it
;
LLAvatarGroups
::
LLGroupData
group_data
=
*
it
;
groups
+=
", "
;
groups
+=
group_data
.
group_name
;
// Check if there is no duplicates for this group
if
(
std
::
find
(
mGroups
.
begin
(),
mGroups
.
end
(),
group_data
.
group_name
)
==
mGroups
.
end
())
mGroups
.
push_back
(
group_data
.
group_name
);
}
// Creating string, containing group list
std
::
string
groups
=
""
;
for
(
group_list_t
::
const_iterator
it
=
mGroups
.
begin
();
it
!=
mGroups
.
end
();
++
it
)
{
if
(
it
!=
mGroups
.
begin
())
groups
+=
", "
;
groups
+=
*
it
;
}
}
mGroups
=
groups
;
childSetValue
(
"sl_groups"
,
mG
roups
);
childSetValue
(
"sl_groups"
,
g
roups
);
}
}
void
LLPanelAvatarProfile
::
fillCommonData
(
const
LLAvatarData
*
avatar_data
)
void
LLPanelAvatarProfile
::
fillCommonData
(
const
LLAvatarData
*
avatar_data
)
...
...
This diff is collapsed.
Click to expand it.
indra/newview/llpanelavatar.h
+
3
−
1
View file @
c227f93b
...
@@ -183,7 +183,9 @@ class LLPanelAvatarProfile
...
@@ -183,7 +183,9 @@ class LLPanelAvatarProfile
private:
private:
std
::
string
mGroups
;
typedef
std
::
list
<
std
::
string
>
group_list_t
;
group_list_t
mGroups
;
LLToggleableMenu
*
mProfileMenu
;
LLToggleableMenu
*
mProfileMenu
;
};
};
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment