summaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-06-30 18:37:33 +0300
committerAndrei Karas <akaras@inbox.ru>2017-06-30 19:06:13 +0300
commita5426222cb3447e92a7051cbfe7ec8777648e4ee (patch)
tree873721c32cec0780fe1131ca4607342d2ffa6347 /src/game.cpp
parent35002b57f36c1ea66daada6a3a0ef05ef37512ec (diff)
downloadplus-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.cpp9
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(),