From 78e99316ccfee1c38ec19cad8475c7e6e0e2e690 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 14 Jun 2015 22:19:52 +0300 Subject: Use CREATEWIDGET macro in pethandler. --- src/net/eathena/pethandler.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/net/eathena/pethandler.cpp b/src/net/eathena/pethandler.cpp index f737ba6a1..0b31295f8 100644 --- a/src/net/eathena/pethandler.cpp +++ b/src/net/eathena/pethandler.cpp @@ -29,6 +29,8 @@ #include "gui/windows/eggselectiondialog.h" +#include "gui/widgets/createwidget.h" + #include "gui/widgets/tabs/chat/chattab.h" #include "net/inventoryhandler.h" @@ -209,8 +211,7 @@ void PetHandler::processEggsList(Net::MessageIn &msg) inventoryHandler->selectEgg(item); return; } - SellDialog *const dialog = new EggSelectionDialog; - dialog->postInit(); + SellDialog *const dialog = CREATEWIDGETR0(EggSelectionDialog); for (int f = 0; f < count; f ++) { -- cgit v1.2.3-70-g09d2