From 5794558186a1b98d3906224dab98403352d523d9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 23:23:53 +0300 Subject: Use CREATEWIDGET macro in socialguildtab. --- src/gui/widgets/tabs/socialguildtab.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gui/widgets/tabs/socialguildtab.h b/src/gui/widgets/tabs/socialguildtab.h index 5490af1a0..f636bfc7c 100644 --- a/src/gui/widgets/tabs/socialguildtab.h +++ b/src/gui/widgets/tabs/socialguildtab.h @@ -113,24 +113,24 @@ class SocialGuildTab final : public SocialTab, void invite() override final { - // TRANSLATORS: guild invite message - mInviteDialog = new TextDialog(_("Member Invite to Guild"), + CREATEWIDGETV(mInviteDialog, TextDialog, + // TRANSLATORS: guild invite message + _("Member Invite to Guild"), // TRANSLATORS: guild invite message strprintf(_("Who would you like to invite to guild %s?"), mGuild->getName().c_str()), socialWindow); - mInviteDialog->postInit(); mInviteDialog->setActionEventId("do invite"); mInviteDialog->addActionListener(this); } void leave() override final { - // TRANSLATORS: guild leave message - mConfirmDialog = new ConfirmDialog(_("Leave Guild?"), + CREATEWIDGETV(mConfirmDialog, ConfirmDialog, + // TRANSLATORS: guild leave message + _("Leave Guild?"), // TRANSLATORS: guild leave message strprintf(_("Are you sure you want to leave guild %s?"), mGuild->getName().c_str()), SOUND_REQUEST, socialWindow); - mConfirmDialog->postInit(); mConfirmDialog->addActionListener(this); } -- cgit v1.2.3-70-g09d2