summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-31 23:20:54 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-31 23:20:54 +0300
commit33ef923235aeabd07308816bb07ef790cc6c1024 (patch)
treee50c8bbefae98bc57e5b804ba145bca2005c5ca7 /src/client.cpp
parentb6bd4b5d68df33d12f18a67de2e54e016a0935fe (diff)
downloadplus-33ef923235aeabd07308816bb07ef790cc6c1024.tar.gz
plus-33ef923235aeabd07308816bb07ef790cc6c1024.tar.bz2
plus-33ef923235aeabd07308816bb07ef790cc6c1024.tar.xz
plus-33ef923235aeabd07308816bb07ef790cc6c1024.zip
Move popup related code from viewport into popupManager.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp
index 9f860b669..6f6c78f7c 100644
--- a/src/client.cpp
+++ b/src/client.cpp
@@ -54,6 +54,7 @@
#include "gui/dialogsmanager.h"
#include "gui/gui.h"
#include "gui/skin.h"
+#include "gui/popupmanager.h"
#include "gui/theme.h"
#include "gui/windowmanager.h"
@@ -381,6 +382,8 @@ void Client::gameInit()
gui = new Gui();
gui->postInit(mainGraphics);
+ popupManager = new PopupManager;
+
initSoundManager();
eventsManager.init();
@@ -645,6 +648,7 @@ void Client::gameClear()
logger->log1("Quitting2");
delete2(mCurrentDialog);
+ delete2(popupManager);
delete2(gui);
if (Net::getInventoryHandler())