summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/socialfriendstab.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs/socialfriendstab.h')
-rw-r--r--src/gui/widgets/tabs/socialfriendstab.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/gui/widgets/tabs/socialfriendstab.h b/src/gui/widgets/tabs/socialfriendstab.h
index 776fd6f4b..35d5c4215 100644
--- a/src/gui/widgets/tabs/socialfriendstab.h
+++ b/src/gui/widgets/tabs/socialfriendstab.h
@@ -64,13 +64,7 @@ class SocialFriendsTab final : public SocialTab
SocialTab(widget),
mBeings(new BeingsListModel)
{
- mList = new AvatarListBox(this, mBeings);
- mList->postInit();
- mScroll = new ScrollArea(this, mList, showBackground,
- "social_background.xml");
-
- mScroll->setHorizontalScrollPolicy(ScrollArea::SHOW_AUTO);
- mScroll->setVerticalScrollPolicy(ScrollArea::SHOW_ALWAYS);
+ createControls(mBeings, showBackground);
getPlayersAvatars();
setCaption(name);