diff options
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 5477ad4a..0c7cc1db 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -49,10 +49,9 @@ ChatWindow::ChatWindow(Network *network): setWindowName("Chat"); setResizable(true); - setDefaultSize(0, (windowContainer->getHeight() - 123), 600, 100); - loadWindowState(); + setDefaultSize(0, windowContainer->getHeight() - 123, 600, 123); - mChatInput = new ChatInput(); + mChatInput = new ChatInput; mChatInput->setActionEventId("chatinput"); mChatInput->addActionListener(this); @@ -70,6 +69,8 @@ ChatWindow::ChatWindow(Network *network): add(mScrollArea); add(mChatInput); + loadWindowState(); + // Add key listener to chat input to be able to respond to up/down mChatInput->addKeyListener(this); mCurHist = mHistory.end(); |