diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-07-07 20:12:58 +0000 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2007-07-07 20:12:58 +0000 |
commit | 502c76be8587c1138f4939411be77830619f64d2 (patch) | |
tree | 975189dde9d25680dac9802bd36cf41321a6c201 /src/gui/chatinput.cpp | |
parent | 9836222a00028cc9a3aea9bb4c316a00b59ea33a (diff) | |
download | mana-502c76be8587c1138f4939411be77830619f64d2.tar.gz mana-502c76be8587c1138f4939411be77830619f64d2.tar.bz2 mana-502c76be8587c1138f4939411be77830619f64d2.tar.xz mana-502c76be8587c1138f4939411be77830619f64d2.zip |
Ported to Guichan 0.7.0. Unfortunately, since Guichan 0.6.x didn't have a
FocusListener, compatibility with older versions is broken.
Diffstat (limited to 'src/gui/chatinput.cpp')
-rw-r--r-- | src/gui/chatinput.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gui/chatinput.cpp b/src/gui/chatinput.cpp index 2aa5a159..fc5d6aab 100644 --- a/src/gui/chatinput.cpp +++ b/src/gui/chatinput.cpp @@ -26,9 +26,11 @@ ChatInput::ChatInput() { setVisible(false); + + addFocusListener(this); } -void ChatInput::focusLost() +void ChatInput::focusLost(const gcn::Event &event) { setVisible(false); } |