From 4c0cc94bf87f7afb673cc6473a7455299f81b58e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 23:21:13 +0300 Subject: Use CREATEWIDGET macro in socialpartytab. --- src/gui/widgets/tabs/socialpartytab.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/gui/widgets/tabs') diff --git a/src/gui/widgets/tabs/socialpartytab.h b/src/gui/widgets/tabs/socialpartytab.h index dd1acf5e1..c040fa928 100644 --- a/src/gui/widgets/tabs/socialpartytab.h +++ b/src/gui/widgets/tabs/socialpartytab.h @@ -114,24 +114,24 @@ class SocialPartyTab final : public SocialTab, void invite() override final { - // TRANSLATORS: party invite message - mInviteDialog = new TextDialog(_("Member Invite to Party"), + CREATEWIDGETV(mInviteDialog, TextDialog, + // TRANSLATORS: party invite message + _("Member Invite to Party"), // TRANSLATORS: party invite message strprintf(_("Who would you like to invite to party %s?"), mParty->getName().c_str()), socialWindow); - mInviteDialog->postInit(); mInviteDialog->setActionEventId("do invite"); mInviteDialog->addActionListener(this); } void leave() override final { - // TRANSLATORS: party leave message - mConfirmDialog = new ConfirmDialog(_("Leave Party?"), + CREATEWIDGETV(mConfirmDialog, ConfirmDialog, + // TRANSLATORS: party leave message + _("Leave Party?"), // TRANSLATORS: party leave message strprintf(_("Are you sure you want to leave party %s?"), mParty->getName().c_str()), SOUND_REQUEST, socialWindow); - mConfirmDialog->postInit(); mConfirmDialog->addActionListener(this); } -- cgit v1.2.3-70-g09d2