diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:23:53 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 23:23:53 +0300 |
commit | 5794558186a1b98d3906224dab98403352d523d9 (patch) | |
tree | ef8173648edcf177a8da26b80e476600c1f3b315 /src/gui/widgets/tabs/socialguildtab.h | |
parent | 4c0cc94bf87f7afb673cc6473a7455299f81b58e (diff) | |
download | plus-5794558186a1b98d3906224dab98403352d523d9.tar.gz plus-5794558186a1b98d3906224dab98403352d523d9.tar.bz2 plus-5794558186a1b98d3906224dab98403352d523d9.tar.xz plus-5794558186a1b98d3906224dab98403352d523d9.zip |
Use CREATEWIDGET macro in socialguildtab.
Diffstat (limited to 'src/gui/widgets/tabs/socialguildtab.h')
-rw-r--r-- | src/gui/widgets/tabs/socialguildtab.h | 12 |
1 files 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); } |