diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:21:13 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:21:13 +0300 |
commit | 4c0cc94bf87f7afb673cc6473a7455299f81b58e (patch) | |
tree | 75509a94569b17aec74fc744c427353ec2be19c3 | |
parent | 1fcffb98f5b095653f3e643f2edc3829d9848728 (diff) | |
download | mv-4c0cc94bf87f7afb673cc6473a7455299f81b58e.tar.gz mv-4c0cc94bf87f7afb673cc6473a7455299f81b58e.tar.bz2 mv-4c0cc94bf87f7afb673cc6473a7455299f81b58e.tar.xz mv-4c0cc94bf87f7afb673cc6473a7455299f81b58e.zip |
Use CREATEWIDGET macro in socialpartytab.
-rw-r--r-- | src/gui/widgets/tabs/socialpartytab.h | 12 |
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); } |