summaryrefslogtreecommitdiff
path: root/src/gui/chatwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/chatwindow.cpp')
-rw-r--r--src/gui/chatwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gui/chatwindow.cpp b/src/gui/chatwindow.cpp
index 19555e90d..0e043ea71 100644
--- a/src/gui/chatwindow.cpp
+++ b/src/gui/chatwindow.cpp
@@ -73,12 +73,11 @@
/**
* The chat input hides when it loses focus. It is also invisible by default.
*/
-class ChatInput final : public TextField, public gcn::FocusListener
+class ChatInput final : public TextField
{
public:
ChatInput(ChatWindow *const window, TabbedArea *const tabs):
TextField(window, "", false),
- gcn::FocusListener(),
mWindow(window),
mChatTabs(tabs),
mFocusGaining(false)
@@ -93,8 +92,9 @@ class ChatInput final : public TextField, public gcn::FocusListener
* Called if the chat input loses focus. It will set itself to
* invisible as result.
*/
- void focusLost(const gcn::Event &event A_UNUSED)
+ void focusLost(const gcn::Event &event)
{
+ TextField::focusLost(event);
if (mFocusGaining || !config.getBoolValue("protectChatFocus"))
{
processVisible(false);