diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-14 20:57:30 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-14 20:57:30 +0300 |
commit | 308f903d2de25ddd99b70e9d8c8ae28f05f3694d (patch) | |
tree | d02cd0b015d6a869b55a479e7751e7eea1de2bbb /src/net/ea/inventoryhandler.cpp | |
parent | 038dc957154f565cdac1d88ecf92c711532eaa9a (diff) | |
download | plus-308f903d2de25ddd99b70e9d8c8ae28f05f3694d.tar.gz plus-308f903d2de25ddd99b70e9d8c8ae28f05f3694d.tar.bz2 plus-308f903d2de25ddd99b70e9d8c8ae28f05f3694d.tar.xz plus-308f903d2de25ddd99b70e9d8c8ae28f05f3694d.zip |
Use CREATEWIDGET macro in inventoryhandler.
Diffstat (limited to 'src/net/ea/inventoryhandler.cpp')
-rw-r--r-- | src/net/ea/inventoryhandler.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/net/ea/inventoryhandler.cpp b/src/net/ea/inventoryhandler.cpp index e95f62d3d..44b73928f 100644 --- a/src/net/ea/inventoryhandler.cpp +++ b/src/net/ea/inventoryhandler.cpp @@ -28,6 +28,8 @@ #include "enums/equipslot.h" +#include "gui/widgets/createwidget.h" + #include "net/messagein.h" #include "net/ea/eaprotocol.h" @@ -266,8 +268,7 @@ void InventoryHandler::processPlayerStorageStatus(Net::MessageIn &msg) if (!storageWindow) { - storageWindow = new InventoryWindow(mStorage); - storageWindow->postInit(); + CREATEWIDGETV(storageWindow, InventoryWindow, mStorage); } BLOCK_END("InventoryHandler::processPlayerStorageStatus") } |