From 31afa067800d048985deb9ebe45c9729dfd39a00 Mon Sep 17 00:00:00 2001 From: Jared Adams Date: Thu, 9 Apr 2009 09:00:06 -0600 Subject: Add a popup menu item to add Being name to chat --- src/gui/chat.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gui/chat.cpp') 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) -- cgit v1.2.3-60-g2f50