From 1fcffb98f5b095653f3e643f2edc3829d9848728 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 23:18:21 +0300 Subject: Use CREATEWIDGET macro in socialtab. --- src/gui/widgets/tabs/socialtab.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gui/widgets') 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"); -- cgit v1.2.3-60-g2f50