diff options
author | Jared Adams <jaxad0127@gmail.com> | 2009-04-09 09:00:06 -0600 |
---|---|---|
committer | Jared Adams <jaxad0127@gmail.com> | 2009-04-09 09:00:06 -0600 |
commit | 31afa067800d048985deb9ebe45c9729dfd39a00 (patch) | |
tree | c6d1528c9c4dbba07bd0dddd5144ec56706fb0d1 /src/gui/chat.cpp | |
parent | ad290061e608a232ed04d587c7b742217f552898 (diff) | |
download | mana-31afa067800d048985deb9ebe45c9729dfd39a00.tar.gz mana-31afa067800d048985deb9ebe45c9729dfd39a00.tar.bz2 mana-31afa067800d048985deb9ebe45c9729dfd39a00.tar.xz mana-31afa067800d048985deb9ebe45c9729dfd39a00.zip |
Add a popup menu item to add Being name to chat
Diffstat (limited to 'src/gui/chat.cpp')
-rw-r--r-- | src/gui/chat.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 86e5865a..b7a57da5 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -365,7 +365,7 @@ void ChatWindow::keyPressed(gcn::KeyEvent &event) } } -void ChatWindow::setInputText(std::string input_str) +void ChatWindow::addInputText(std::string input_str) { mChatInput->setText(mChatInput->getText() + input_str + " "); requestChatFocus(); @@ -375,8 +375,7 @@ void ChatWindow::addItemText(const std::string &item) { std::ostringstream text; text << "[" << item << "] "; - mChatInput->setText(mChatInput->getText() + text.str()); - requestChatFocus(); + addInputText(text.str()); } void ChatWindow::setVisible(bool isVisible) |