summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/socialpartytab.h12
1 files changed, 6 insertions, 6 deletions
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);
}