summaryrefslogtreecommitdiff
path: root/src/gui/windowmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-08-07 02:23:04 +0300
committerAndrei Karas <akaras@inbox.ru>2017-08-07 02:23:04 +0300
commit3e0bce53e2b3387801f3e0484f01a64d767115da (patch)
tree0601c1a09f7452fb41702249e70cbe0f035ea7df /src/gui/windowmanager.cpp
parentc35ae089aaa484b72c787625d2dd9a1481fa15b6 (diff)
downloadmv-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.gz
mv-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.bz2
mv-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.xz
mv-3e0bce53e2b3387801f3e0484f01a64d767115da.zip
Allow open debug window before connecting to game.
Diffstat (limited to 'src/gui/windowmanager.cpp')
-rw-r--r--src/gui/windowmanager.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/gui/windowmanager.cpp b/src/gui/windowmanager.cpp
index 62d2996c7..38141720b 100644
--- a/src/gui/windowmanager.cpp
+++ b/src/gui/windowmanager.cpp
@@ -49,6 +49,7 @@
#include "gui/popups/textboxpopup.h"
#include "gui/windows/chatwindow.h"
+#include "gui/windows/debugwindow.h"
#include "gui/windows/didyouknowwindow.h"
#include "gui/windows/equipmentwindow.h"
#include "gui/windows/helpwindow.h"
@@ -144,6 +145,13 @@ void WindowManager::createWindows()
"#Debug", ChatTabType::DEBUG);
debugChatTab->setAllowHighlight(false);
chatWindow->setVisible(Visible_false);
+ if (debugWindow)
+ {
+ debugWindow->scheduleDelete();
+ debugWindow = nullptr;
+ }
+ CREATEWIDGETV(debugWindow, DebugWindow,
+ "DebugDebug");
#endif // DYECMD
CREATEWIDGETV0(textPopup, TextPopup);
@@ -187,6 +195,7 @@ void WindowManager::deleteWindows()
delete2(debugChatTab);
delete2(chatWindow);
+ delete2(debugWindow);
#endif // DYECMD
delete2(textPopup);