diff options
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r-- | src/gui/widgets/tabs/socialtab.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/tabs/socialtab.h b/src/gui/widgets/tabs/socialtab.h index ff3d5472d..97da41df7 100644 --- a/src/gui/widgets/tabs/socialtab.h +++ b/src/gui/widgets/tabs/socialtab.h @@ -28,6 +28,7 @@ #include "gui/windows/textdialog.h" #include "gui/widgets/avatarlistbox.h" +#include "gui/widgets/createwidget.h" #include "gui/widgets/scrollarea.h" #include "gui/widgets/tabs/tab.h" @@ -104,8 +105,7 @@ class SocialTab notfinal : public Tab void createControls(AvatarListModel *const listModel, const bool showBackground) { - mList = new AvatarListBox(this, listModel); - mList->postInit(); + CREATEWIDGETV(mList, AvatarListBox, this, listModel); mScroll = new ScrollArea(this, mList, showBackground, "social_background.xml"); |