summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-14 23:21:13 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-14 23:21:13 +0300
commit4c0cc94bf87f7afb673cc6473a7455299f81b58e (patch)
tree75509a94569b17aec74fc744c427353ec2be19c3 /src/gui
parent1fcffb98f5b095653f3e643f2edc3829d9848728 (diff)
downloadmv-4c0cc94bf87f7afb673cc6473a7455299f81b58e.tar.gz
mv-4c0cc94bf87f7afb673cc6473a7455299f81b58e.tar.bz2
mv-4c0cc94bf87f7afb673cc6473a7455299f81b58e.tar.xz
mv-4c0cc94bf87f7afb673cc6473a7455299f81b58e.zip
Use CREATEWIDGET macro in socialpartytab.
Diffstat (limited to 'src/gui')
-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);
}