diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-08-07 02:23:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-08-07 02:23:04 +0300 |
commit | 3e0bce53e2b3387801f3e0484f01a64d767115da (patch) | |
tree | 0601c1a09f7452fb41702249e70cbe0f035ea7df /src/game.cpp | |
parent | c35ae089aaa484b72c787625d2dd9a1481fa15b6 (diff) | |
download | manaplus-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.gz manaplus-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.bz2 manaplus-3e0bce53e2b3387801f3e0484f01a64d767115da.tar.xz manaplus-3e0bce53e2b3387801f3e0484f01a64d767115da.zip |
Allow open debug window before connecting to game.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index b9eeb12b7..b90d9c293 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -227,7 +227,13 @@ static void createGuiWindows() CREATEWIDGETV0(shopWindow, ShopWindow); CREATEWIDGETV0(skillDialog, SkillDialog); CREATEWIDGETV0(minimap, Minimap); - CREATEWIDGETV0(debugWindow, DebugWindow); + if (debugWindow) + { + debugWindow->scheduleDelete(); + debugWindow = nullptr; + } + CREATEWIDGETV(debugWindow, DebugWindow, + "Debug"); CREATEWIDGETV(itemShortcutWindow, ShortcutWindow, "ItemShortcut", "items.xml", 83, 460); |