diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-06-30 18:37:33 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-06-30 19:06:13 +0300 |
commit | a5426222cb3447e92a7051cbfe7ec8777648e4ee (patch) | |
tree | 873721c32cec0780fe1131ca4607342d2ffa6347 /src/game.cpp | |
parent | 35002b57f36c1ea66daada6a3a0ef05ef37512ec (diff) | |
download | plus-a5426222cb3447e92a7051cbfe7ec8777648e4ee.tar.gz plus-a5426222cb3447e92a7051cbfe7ec8777648e4ee.tar.bz2 plus-a5426222cb3447e92a7051cbfe7ec8777648e4ee.tar.xz plus-a5426222cb3447e92a7051cbfe7ec8777648e4ee.zip |
Allow open chat window with debug tab before connecting to game.
Diffstat (limited to 'src/game.cpp')
-rw-r--r-- | src/game.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/game.cpp b/src/game.cpp index 21701e02d..54c1581d1 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -199,7 +199,14 @@ static void createGuiWindows() // Create dialogs CREATEWIDGETV0(emoteWindow, EmoteWindow); - CREATEWIDGETV0(chatWindow, ChatWindow); + delete2(debugChatTab) + if (chatWindow) + { + chatWindow->scheduleDelete(); + chatWindow = nullptr; + } + CREATEWIDGETV(chatWindow, ChatWindow, + "Chat"); CREATEWIDGETV0(tradeWindow, TradeWindow); CREATEWIDGETV(equipmentWindow, EquipmentWindow, PlayerInfo::getEquipment(), |