From 691703127f7f35e8b954782ddb7ff613c478bedb Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 2 Jun 2016 18:58:51 +0300 Subject: Collect asserts before creating chat window and after show all collected asserts in debug chat tab. --- src/client.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index 075c6335e..4f7accd36 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -143,6 +143,7 @@ #include "utils/translation/translationmanager.h" +#include "listeners/assertlistener.h" #include "listeners/errorlistener.h" #ifdef USE_OPENGL @@ -261,6 +262,7 @@ void Client::gameInit() initRand(); + assertListener = new AssertListener; // Load branding information if (!settings.options.brandingPath.empty()) branding.init(settings.options.brandingPath); @@ -573,6 +575,8 @@ void Client::gameClear() logger->log1("Quitting1"); config.removeListeners(this); + delete2(assertListener); + eventsManager.shutdown(); WindowManager::deleteWindows(); if (windowContainer) @@ -983,6 +987,7 @@ int Client::gameExec() if (mOldState == State::GAME) { delete2(mGame); + assertListener = new AssertListener; Game::clearInstance(); resourceManager->cleanOrphans(); Party::clearParties(); -- cgit v1.2.3-60-g2f50